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:
parent
4e34f221d8
commit
9de2b983c8
1 changed files with 9 additions and 0 deletions
|
@ -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 }
|
||||||
|
|
Loading…
Reference in a new issue