2019-11-28 10:19:36 +00:00
|
|
|
apply plugin: 'com.jfrog.bintray'
|
|
|
|
|
2020-01-09 11:26:40 +00:00
|
|
|
apply from: "maven.publish.gradle"
|
2019-11-28 10:19:36 +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')
|
|
|
|
pkg {
|
|
|
|
repo = "InsanusMokrassar"
|
|
|
|
name = "${project.name}"
|
|
|
|
vcsUrl = "https://github.com/PostsSystem/PostsSystemCore"
|
|
|
|
licenses = ["Apache-2.0"]
|
|
|
|
version {
|
|
|
|
name = "${project.version}"
|
|
|
|
released = new Date()
|
|
|
|
vcsTag = "${project.version}"
|
2020-01-09 11:26:40 +00:00
|
|
|
gpg {
|
|
|
|
sign = true
|
|
|
|
passphrase = project.hasProperty('signing.gnupg.passphrase') ? project.property('signing.gnupg.passphrase') : System.getenv('signing.gnupg.passphrase')
|
|
|
|
}
|
2019-11-28 10:19:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-09 11:26:40 +00:00
|
|
|
bintrayUpload.doFirst {
|
|
|
|
publications = publishing.publications.collect {
|
|
|
|
it.name
|
|
|
|
}
|
|
|
|
}
|
2019-11-28 10:19:36 +00:00
|
|
|
|
|
|
|
bintrayUpload.dependsOn publishToMavenLocal
|