krontab/publish.gradle

28 lines
754 B
Groovy
Raw Normal View History

2019-05-21 10:14:09 +00:00
apply plugin: 'com.jfrog.bintray'
apply from: "maven.publish.gradle"
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 {
2019-11-19 19:36:10 +00:00
repo = "$project_bintray_repo"
2019-05-21 10:14:09 +00:00
name = "${project.name}"
2019-11-19 13:20:08 +00:00
vcsUrl = "${project_url}"
2019-05-21 10:14:09 +00:00
licenses = ['Apache-2.0']
version {
name = "${project.version}"
released = new Date()
2019-11-19 19:36:10 +00:00
vcsTag = "${project.version}"
2019-05-21 10:14:09 +00:00
}
}
}
2019-11-19 19:36:10 +00:00
bintrayUpload.doFirst {
publications = publishing.publications.collect {
it.name
}
}
bintrayUpload.dependsOn publishToMavenLocal