1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-24 23:32:05 +01:00

gradle: Add workaround for gpg signatory not supporting 'required'

This commit is contained in:
Florian Schmaus 2019-07-21 09:01:07 +02:00
parent 4e34f221d8
commit 9de2b983c8

View file

@ -484,6 +484,15 @@ subprojects {
include "$libsDirName/*${version}-sources.jar" include "$libsDirName/*${version}-sources.jar"
} }
} }
// Workaround for gpg signatory not supporting the 'required' option
// See https://github.com/gradle/gradle/issues/5064#issuecomment-381924984
// Note what we use 'signing.gnupg.keyName' instead of 'signing.keyId'.
tasks.withType(Sign) {
onlyIf {
project.hasProperty('signing.gnupg.keyName')
}
}
signing { signing {
useGpgCmd() useGpgCmd()
required { signingRequired } required { signingRequired }