Skip to content

Commit

Permalink
Fixed bintray task, which now correctly finds user name and key from …
Browse files Browse the repository at this point in the history
…properties
  • Loading branch information
kpmmmurphy committed Feb 20, 2017
1 parent c23d06a commit 5f2e3e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions alerter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ android {

//BinTray configuration - credentials stored in user's gradle.properties
bintray {
user = hasProperty('BINTRAY_USER')? getProperty('BINTRAY_USER') : null
key = hasProperty('BINTRAY_KEY')? getProperty('BINTRAY_KEY') : null
user = project.hasProperty('BINTRAY_USER')? project.getProperty('BINTRAY_USER') : null
key = project.hasProperty('BINTRAY_KEY')? project.getProperty('BINTRAY_KEY') : null

publications = ['Alerter']

Expand Down Expand Up @@ -133,7 +133,7 @@ bintrayUpload.dependsOn 'generatePomFileForAlerterPublication'

task showBintrayProps {
doLast {
println "Bintray user/password: ${BINTRAY_USER}/${BINTRAY_KEY}"
println "Bintray user/password: ${project.hasProperty('BINTRAY_USER')? project.getProperty('BINTRAY_USER') : null}/${project.hasProperty('BINTRAY_KEY')? project.getProperty('BINTRAY_KEY') : null}"
}
}

Expand Down

0 comments on commit 5f2e3e6

Please sign in to comment.