Skip to content

Commit

Permalink
Fix bintray upload script
Browse files Browse the repository at this point in the history
  • Loading branch information
manas-chaudhari committed Aug 3, 2016
1 parent 0258923 commit a5fbbf1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions gradle/bintray/bintray.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,15 @@ artifacts {
archives sourcesJar
}

// Convenience method. Gradle 2.13 adds this in all projects
String findProperty(String name) {
return hasProperty(name) ? property(name) : null
}

// Bintray
bintray {
user = hasProperty('bintrayUser') ? bintrayUser : ""
key = hasProperty('bintrayKey') ? bintrayKey : ""
user = findProperty('bintrayUser')
key = findProperty('bintrayKey')

configurations = ['archives']
pkg {
Expand All @@ -49,7 +54,7 @@ bintray {
desc = libraryDescription
gpg {
sign = true //Determines whether to GPG sign the files. The default is false
passphrase = hasProperty('bintrayGpgPassword') ? bintrayGpgPassword : ""
passphrase = findProperty('bintrayGpgPassword')
//Optional. The passphrase for GPG signing'
}
}
Expand Down

0 comments on commit a5fbbf1

Please sign in to comment.