1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-14 12:23:47 +00:00
tgbotapi/publish.gradle

31 lines
1014 B
Groovy
Raw Normal View History

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 {
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}"
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