From ef1035e10d62136230c4a437d6f8433ea08e57fb Mon Sep 17 00:00:00 2001 From: crschnick Date: Mon, 7 Apr 2025 17:44:25 +0000 Subject: [PATCH] [stage] --- build.gradle | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index cdc62ffb0..950f43588 100644 --- a/build.gradle +++ b/build.gradle @@ -164,12 +164,9 @@ project.ext { file("$rootDir/dist/changelogs/${versionString}.md") : file("$rootDir/dist/changelogs/${canonicalVersionString}.md") incrementalChangelogFile = file("$rootDir/dist/changelogs/${canonicalVersionString}_incremental.md") - signingKeyId = project.hasProperty('signingKeyId') ? project.property("signingKeyId") : System.getenv('GPG_KEY_ID') - signingKey = project.hasProperty('signingKeyFile') ? file(project.property("signingKeyFile")).text : System.getenv('GPG_KEY') - signingPassword = project.hasProperty('signingKeyPassword') ? project.property("signingKeyPassword") : System.getenv('GPG_KEY_PASSWORD') - if (signingPassword == null) { - signingPassword = '' - } + signingKeyId = project.hasProperty('signingKeyId') ? project.property("signingKeyId") : (System.getenv('GPG_KEY_ID') != null ? System.getenv('GPG_KEY_ID') : "") + signingKey = project.hasProperty('signingKeyFile') ? file(project.property("signingKeyFile")).text : (System.getenv('GPG_KEY') != null ? System.getenv('GPG_KEY') : "") + signingPassword = project.hasProperty('signingKeyPassword') ? project.property("signingKeyPassword") : (System.getenv('GPG_KEY_PASSWORD') != null ? System.getenv('GPG_KEY_PASSWORD') : "") deeplApiKey = findProperty('DEEPL_API_KEY') // Define a custom JavaFX SDK location