1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 08:13:47 +00:00

rewrite to use built-in signing

This commit is contained in:
InsanusMokrassar 2018-12-28 09:39:59 +08:00
parent 0633db8889
commit 754cdd6b2e

View File

@ -1,8 +1,22 @@
apply plugin: 'com.jfrog.bintray' apply plugin: 'com.jfrog.bintray'
ext {
projectBintrayDir = "${project.group}/".replace(".", "/") + "${project.name}/${project.version}"
}
bintray { bintray {
user = System.getenv('BINTRAY_USER') user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY') key = System.getenv('BINTRAY_KEY')
publications = ["maven"]
filesSpec {
into "$projectBintrayDir"
from("build/libs") {
include "**/*.asc"
}
from("build/publications/maven") {
rename 'pom-default.xml(.*)', "${project.name}-${project.version}.pom\$1"
}
}
pkg { pkg {
repo = 'StandardRepository' repo = 'StandardRepository'
name = "${project.name}" name = "${project.name}"
@ -12,13 +26,8 @@ bintray {
name = "${project.version}" name = "${project.version}"
released = new Date() released = new Date()
vcsTag = name vcsTag = name
gpg {
sign = true
passphrase = System.getenv('SIGN_PASSPHRASE')
} }
} }
publications = ["maven"]
}
} }
apply from: "maven.publish.gradle" apply from: "maven.publish.gradle"