Align signing properties with gradle defaults

This commit is contained in:
Sebastian Sdorra
2021-01-06 14:47:10 +01:00
committed by René Pfeuffer
parent a0405271fb
commit a16086bc6c
2 changed files with 12 additions and 12 deletions

View File

@@ -65,16 +65,16 @@ task deb(type: Deb) {
preInstallFile file('src/main/scripts/preinst')
postInstallFile file('src/main/scripts/postinst')
if (project.hasProperty("gpg.scm.keyring")) {
signingKeyRingFile file(project.property("gpg.scm.keyring"))
if (project.hasProperty("signing.keyId")) {
signingKeyId project.property("signing.keyId")
}
if (project.hasProperty("gpg.scm.key")) {
signingKeyId project.property("gpg.scm.key")
if (project.hasProperty("signing.password")) {
signingKeyPassphrase project.property("signing.password")
}
if (project.hasProperty("gpg.scm.passphrase")) {
signingKeyPassphrase project.property("gpg.scm.passphrase")
if (project.hasProperty("signing.secretKeyRingFile")) {
signingKeyRingFile file(project.property("signing.secretKeyRingFile"))
}
VersionNumber version = VersionNumber.parse(project.version)

View File

@@ -84,16 +84,16 @@ task rpm(type: Rpm) {
preInstall file('src/main/scripts/before-installation.sh')
postInstall file('src/main/scripts/after-installation.sh')
if (project.hasProperty("gpg.scm.keyring")) {
signingKeyRingFile file(project.property("gpg.scm.keyring"))
if (project.hasProperty("signing.keyId")) {
signingKeyId project.property("signing.keyId")
}
if (project.hasProperty("gpg.scm.key")) {
signingKeyId project.property("gpg.scm.key")
if (project.hasProperty("signing.password")) {
signingKeyPassphrase project.property("signing.password")
}
if (project.hasProperty("gpg.scm.passphrase")) {
signingKeyPassphrase project.property("gpg.scm.passphrase")
if (project.hasProperty("signing.secretKeyRingFile")) {
signingKeyRingFile file(project.property("signing.secretKeyRingFile"))
}
VersionNumber version = VersionNumber.parse(project.version)