mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 10:37:59 +01:00
gradle: Add workaround for gpg signatory not supporting 'required'
This commit is contained in:
parent
4e34f221d8
commit
9de2b983c8
1 changed files with 9 additions and 0 deletions
|
@ -484,6 +484,15 @@ subprojects {
|
|||
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 {
|
||||
useGpgCmd()
|
||||
required { signingRequired }
|
||||
|
|
Loading…
Reference in a new issue