Skip to content

Commit 2565ed4

Browse files
committed
Move properties out of 'bintray' block
`hasProperty` does not seem to work inside this block
1 parent 9ec3775 commit 2565ed4

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

publishing.gradle

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
apply plugin: 'maven-publish'
22
apply plugin: "io.spring.bintray"
33

4-
bintray {
5-
bintrayUser = hasProperty('bintray_username') ? bintray_username : System.getenv('BINTRAY_USER')
6-
bintrayKey = hasProperty('bintray_key') ? bintray_key : System.getenv('BINTRAY_KEY')
7-
repo = 'maven'
8-
org = hasProperty('bintray_username') ? bintray_username : System.getenv('BINTRAY_USER')
9-
packageName = 'Mockito-Kotlin'
10-
publication = 'mavenJava'
11-
12-
licenses = ['MIT']
13-
ossrhUser = hasProperty('sonatype_username') ? sonatype_username : System.getenv('SONATYPE_USERNAME')
14-
ossrhPassword = hasProperty('sonatype_password') ? sonatype_password : System.getenv('SONATYPE_PASSWORD')
15-
overrideOnUpload = false
16-
}
4+
bintray.bintrayUser = hasProperty('bintray_username') ? bintray_username : System.getenv('BINTRAY_USER')
5+
bintray.bintrayKey = hasProperty('bintray_key') ? bintray_key : System.getenv('BINTRAY_KEY')
6+
bintray.repo = 'maven'
7+
bintray.org = hasProperty('bintray_username') ? bintray_username : System.getenv('BINTRAY_USER')
8+
bintray.packageName = 'Mockito-Kotlin'
9+
bintray.publication = 'mavenJava'
10+
11+
bintray.licenses = ['MIT']
12+
bintray.ossrhUser = hasProperty('sonatype_username') ? sonatype_username : System.getenv('SONATYPE_USERNAME')
13+
bintray.ossrhPassword = hasProperty('sonatype_password') ? sonatype_password : System.getenv('SONATYPE_PASSWORD')
14+
bintray.overrideOnUpload = false
1715
bintray.gpgPassphrase = hasProperty('signing_password') ? signing_password : System.getenv('SIGNING_PASSWORD')
1816

1917
task javadocJar(type: Jar, dependsOn: javadoc) {

0 commit comments

Comments
 (0)