Returned to using more readable bintray syntax.

This commit is contained in:
Clinton Alexander 2016-12-06 16:03:30 +00:00
parent a6d1a07670
commit 1b052b07ec

View File

@ -112,17 +112,25 @@ class PublishTasks implements Plugin<Project> {
void configureBintray(BintrayConfigExtension bintrayConfig) { void configureBintray(BintrayConfigExtension bintrayConfig) {
project.apply([plugin: 'com.jfrog.bintray']) project.apply([plugin: 'com.jfrog.bintray'])
def bintray = project.extensions.findByName("bintray") project.bintray {
bintray.user = bintrayConfig.user user = bintrayConfig.user
bintray.key = bintrayConfig.key key = bintrayConfig.key
bintray.publications = [ publishName ] publications = [ publishName ]
bintray.dryRun = bintrayConfig.dryRun ?: false dryRun = bintrayConfig.dryRun ?: false
bintray.pkg.repo = bintrayConfig.repo pkg {
bintray.pkg.name = publishName repo = bintrayConfig.repo
bintray.pkg.userOrg = bintrayConfig.org name = publishName
bintray.pkg.licenses = bintrayConfig.licenses userOrg = bintrayConfig.org
bintray.pkg.version.gpg.sign = bintrayConfig.gpgSign ?: false licenses = bintrayConfig.licenses
bintray.pkg.version.gpg.passphrase = bintrayConfig.gpgPassphrase
version {
gpg {
sign = bintrayConfig.gpgSign ?: false
passphrase = bintrayConfig.gpgPassphrase
}
}
}
}
} }
void createTasks() { void createTasks() {