gradle, only sign when properties are there

This commit is contained in:
soloturn 2022-02-13 07:33:00 +01:00
parent 81fd6d4943
commit 06b6493f69
1 changed files with 4 additions and 2 deletions

View File

@ -110,6 +110,8 @@ tasks.test {
}
signing {
useGpgCmd()
sign(publishing.publications["maven"])
if (hasProperty("signing.gnupg.passphrase")) {
useGpgCmd()
sign(publishing.publications["maven"])
}
}