2018-12-27 03:40:53 +00:00
|
|
|
apply plugin: 'com.jfrog.bintray'
|
|
|
|
|
2018-12-28 01:39:59 +00:00
|
|
|
ext {
|
|
|
|
projectBintrayDir = "${project.group}/".replace(".", "/") + "${project.name}/${project.version}"
|
|
|
|
}
|
|
|
|
|
2018-12-27 03:40:53 +00:00
|
|
|
bintray {
|
|
|
|
user = System.getenv('BINTRAY_USER')
|
|
|
|
key = System.getenv('BINTRAY_KEY')
|
2018-12-28 01:39:59 +00:00
|
|
|
publications = ["maven"]
|
|
|
|
filesSpec {
|
|
|
|
into "$projectBintrayDir"
|
|
|
|
from("build/libs") {
|
|
|
|
include "**/*.asc"
|
|
|
|
}
|
|
|
|
from("build/publications/maven") {
|
|
|
|
rename 'pom-default.xml(.*)', "${project.name}-${project.version}.pom\$1"
|
|
|
|
}
|
|
|
|
}
|
2018-12-27 03:40:53 +00:00
|
|
|
pkg {
|
|
|
|
repo = 'StandardRepository'
|
|
|
|
name = "${project.name}"
|
|
|
|
vcsUrl = "https://github.com/InsanusMokrassar/${project.name}"
|
|
|
|
licenses = ['Apache-2.0']
|
|
|
|
version {
|
|
|
|
name = "${project.version}"
|
|
|
|
released = new Date()
|
|
|
|
vcsTag = name
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply from: "maven.publish.gradle"
|