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

27 lines
786 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}"
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