core/postssystem.exposed/publish.gradle

39 lines
1.3 KiB
Groovy
Raw Normal View History

apply plugin: 'com.jfrog.bintray'
2020-01-09 11:26:40 +00:00
apply from: "maven.publish.gradle"
2020-01-31 12:15:24 +00:00
ext {
projectBintrayDir = "${project.group}/".replace(".", "/") + "${project.name}/${project.version}"
}
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')
2020-01-31 12:19:27 +00:00
publications = ["maven"]
2020-01-29 16:15:21 +00:00
filesSpec {
2020-01-31 12:14:01 +00:00
into "$projectBintrayDir"
from("build/libs") {
include "**/*.asc"
}
from("build/publications/maven") {
rename 'pom-default.xml(.*)', "${project.name}-${project.version}.pom\$1"
2020-01-29 16:15:21 +00:00
}
}
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')
}
}
}
}
bintrayUpload.dependsOn publishToMavenLocal