2018-12-27 03:40:53 +00:00
|
|
|
apply plugin: 'com.jfrog.bintray'
|
|
|
|
|
2019-12-03 05:07:25 +00:00
|
|
|
apply from: "maven.publish.gradle"
|
2018-12-28 01:39:59 +00:00
|
|
|
|
2018-12-27 03:40:53 +00:00
|
|
|
bintray {
|
2018-12-28 02:40:24 +00:00
|
|
|
user = project.hasProperty('BINTRAY_USER') ? project.property('BINTRAY_USER') : System.getenv('BINTRAY_USER')
|
|
|
|
key = project.hasProperty('BINTRAY_KEY') ? project.property('BINTRAY_KEY') : System.getenv('BINTRAY_KEY')
|
2018-12-27 03:40:53 +00:00
|
|
|
pkg {
|
2019-12-03 05:07:25 +00:00
|
|
|
repo = "StandardRepository"
|
2018-12-27 03:40:53 +00:00
|
|
|
name = "${project.name}"
|
2019-12-03 05:07:25 +00:00
|
|
|
vcsUrl = "https://github.com/InsanusMokrassar/TelegramBotAPI"
|
|
|
|
licenses = ["Apache-2.0"]
|
2018-12-27 03:40:53 +00:00
|
|
|
version {
|
|
|
|
name = "${project.version}"
|
|
|
|
released = new Date()
|
2019-12-03 05:07:25 +00:00
|
|
|
vcsTag = "${project.version}"
|
2020-01-06 16:43:05 +00:00
|
|
|
gpg {
|
|
|
|
sign = true
|
|
|
|
passphrase = project.hasProperty('signing.gnupg.passphrase') ? project.property('signing.gnupg.passphrase') : System.getenv('signing.gnupg.passphrase')
|
|
|
|
}
|
2018-12-27 03:40:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 05:07:25 +00:00
|
|
|
bintrayUpload.doFirst {
|
|
|
|
publications = publishing.publications.collect {
|
|
|
|
it.name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bintrayUpload.dependsOn publishToMavenLocal
|