Skip to content

Commit

Permalink
switch from bintray to cloudsmith
Browse files Browse the repository at this point in the history
  • Loading branch information
jtnelson committed Jul 2, 2021
1 parent 22e2b17 commit 4c8e63e
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
context: bintray-creds
command: |
cd ~/$CIRCLE_PROJECT_REPONAME
./gradlew clean build bintrayUpload --refresh-dependencies
./gradlew clean build publish --refresh-dependencies
- run:
name: Save test results
command: |
Expand Down
76 changes: 46 additions & 30 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ plugins {
id 'maven'
id 'maven-publish'
id 'signing'
id "com.jfrog.bintray" version "1.7.3"
}

task wrapper(type: Wrapper) {
Expand All @@ -22,16 +21,39 @@ if (JavaVersion.current().isJava8Compatible()) {
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
url "https://dl.cloudsmith.io/public/cinchapi/open-source/maven/"
}
maven {
url "https://dl.cloudsmith.io/public/cinchapi/open-source-snapshots/maven/"
}
maven {
url "https://dl.cloudsmith.io/public/cinchapi/platform/maven/"
}
maven {
url "https://dl.cloudsmith.io/public/cinchapi/platform-snapshots/maven/"
}
maven {
url "https://dl.cloudsmith.io/public/cinchapi/enterprise/maven/"
credentials {
username = System.getenv('CLOUDSMITH_API_USER')
password = System.getenv('CLOUDSMITH_API_KEY')
}
}
maven {
url 'http://cinchapi.bintray.com/maven'
url "https://dl.cloudsmith.io/public/cinchapi/enterprise-snapshots/maven/"
credentials {
username = System.getenv('CLOUDSMITH_API_USER')
password = System.getenv('CLOUDSMITH_API_KEY')
}
}
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}


// Set the version for all Concourse dependencies
ext.concourseVersion = '0.10.4'
ext.concourseVersion = '0.10.5'

dependencies {
compile 'com.google.guava:guava:25.1-jre'
Expand Down Expand Up @@ -95,36 +117,30 @@ artifacts {
}

publishing {
publications {
BintrayPublication(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId group
artifactId project.name
version mavenVersion
}
repositories {
maven {
name = 'cloudsmith'
def releasesRepoUrl = "https://api-g.cloudsmith.io/maven/cinchapi/open-source/"
def snapshotsRepoUrl = "https://api-g.cloudsmith.io/maven/cinchapi/open-source-snapshots/"
url = mavenVersion.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = System.getenv('CLOUDSMITH_API_USER')
password = System.getenv('CLOUDSMITH_API_KEY')
}
}
}

bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['BintrayPublication']
pkg {
repo = mavenVersion.matches('^[0-9]+\\.[0-9]+\\.[0-9]+(-rc[0-9]+){0,1}$') ? 'maven' : 'maven-snapshots'
name = project.name
publish = true
userOrg = 'cinchapi'
override = true
version {
name = mavenVersion
released = new Date()
}
}
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId group
artifactId project.name
version mavenVersion
}
}
}


test {
testLogging {
showStandardStreams = true
Expand Down

0 comments on commit 4c8e63e

Please sign in to comment.