Skip to content

Commit

Permalink
Move properties out of 'bintray' block
Browse files Browse the repository at this point in the history
`hasProperty` does not seem to work inside this block
  • Loading branch information
nhaarman committed Nov 30, 2017
1 parent 9ec3775 commit 2565ed4
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions publishing.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
apply plugin: 'maven-publish'
apply plugin: "io.spring.bintray"

bintray {
bintrayUser = hasProperty('bintray_username') ? bintray_username : System.getenv('BINTRAY_USER')
bintrayKey = hasProperty('bintray_key') ? bintray_key : System.getenv('BINTRAY_KEY')
repo = 'maven'
org = hasProperty('bintray_username') ? bintray_username : System.getenv('BINTRAY_USER')
packageName = 'Mockito-Kotlin'
publication = 'mavenJava'

licenses = ['MIT']
ossrhUser = hasProperty('sonatype_username') ? sonatype_username : System.getenv('SONATYPE_USERNAME')
ossrhPassword = hasProperty('sonatype_password') ? sonatype_password : System.getenv('SONATYPE_PASSWORD')
overrideOnUpload = false
}
bintray.bintrayUser = hasProperty('bintray_username') ? bintray_username : System.getenv('BINTRAY_USER')
bintray.bintrayKey = hasProperty('bintray_key') ? bintray_key : System.getenv('BINTRAY_KEY')
bintray.repo = 'maven'
bintray.org = hasProperty('bintray_username') ? bintray_username : System.getenv('BINTRAY_USER')
bintray.packageName = 'Mockito-Kotlin'
bintray.publication = 'mavenJava'

bintray.licenses = ['MIT']
bintray.ossrhUser = hasProperty('sonatype_username') ? sonatype_username : System.getenv('SONATYPE_USERNAME')
bintray.ossrhPassword = hasProperty('sonatype_password') ? sonatype_password : System.getenv('SONATYPE_PASSWORD')
bintray.overrideOnUpload = false
bintray.gpgPassphrase = hasProperty('signing_password') ? signing_password : System.getenv('SIGNING_PASSWORD')

task javadocJar(type: Jar, dependsOn: javadoc) {
Expand Down

0 comments on commit 2565ed4

Please sign in to comment.