Skip to content

Commit

Permalink
Merge pull request #36 from palantir/bugfix/bintray-env-vars
Browse files Browse the repository at this point in the history
BINTRAY_USER -> BINTRAY_USERNAME, BINTRAY_KEY -> BINTRAY_PASSWORD
  • Loading branch information
bavardage committed Apr 27, 2016
2 parents d06aaf7 + 7fb1e87 commit ebf2873
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ artifactory {
contextUrl = 'https://oss.jfrog.org/artifactory'
repository {
repoKey = (project.version =~ /-/ ? 'oss-snapshot-local' : 'oss-release-local')
username = System.env.BINTRAY_USER
password = System.env.BINTRAY_KEY
username = System.env.BINTRAY_USERNAME
password = System.env.BINTRAY_PASSWORD
maven = true
}
defaults {
Expand All @@ -45,8 +45,8 @@ artifactory {
artifactoryPublish.dependsOn 'generatePomFileForBintrayPublication', 'build'

bintray {
user = System.env.BINTRAY_USER
key = System.env.BINTRAY_KEY
user = System.env.BINTRAY_USERNAME
key = System.env.BINTRAY_PASSWORD
pkg {
repo = 'releases'
name = 'encrypted-config-value'
Expand All @@ -57,7 +57,7 @@ bintray {
}

bintrayUpload.onlyIf {
System.env.BINTRAY_USER && System.env.BINTRAY_KEY && project.version ==~ /\d+\.\d+\.\d+/
System.env.BINTRAY_USERNAME && System.env.BINTRAY_PASSWORD && project.version ==~ /\d+\.\d+\.\d+/
}

bintrayUpload.dependsOn 'generatePomFileForBintrayPublication', 'build'
Expand Down

0 comments on commit ebf2873

Please sign in to comment.