1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-26 03:58:44 +00:00

update publishing scheme to be able to publish with signed artifacts

This commit is contained in:
InsanusMokrassar 2020-01-06 22:43:05 +06:00
parent 0d72c51448
commit 034b30d65f
2 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,4 @@
apply plugin: 'maven-publish'
apply plugin: 'signing'
task javadocsJar(type: Jar) {
classifier = 'javadoc'
@ -52,8 +51,3 @@ publishing {
}
}
}
signing {
useGpgCmd()
sign(publishing.publications)
}

View File

@ -14,6 +14,10 @@ bintray {
name = "${project.version}"
released = new Date()
vcsTag = "${project.version}"
gpg {
sign = true
passphrase = project.hasProperty('signing.gnupg.passphrase') ? project.property('signing.gnupg.passphrase') : System.getenv('signing.gnupg.passphrase')
}
}
}
}