This is an automated email from the ASF dual-hosted git repository.

matrei pushed a commit to branch post-gradle-merge
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit 672f2a113a72ce71c60320e4b85bf03ee6b302bc
Author: Mattias Reichel <mattias.reic...@gmail.com>
AuthorDate: Wed Apr 16 11:39:20 2025 +0200

    build: refactor setting of ext variables
---
 grails-gradle/build.gradle | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/grails-gradle/build.gradle b/grails-gradle/build.gradle
index e4e0271840..1b42aa075c 100644
--- a/grails-gradle/build.gradle
+++ b/grails-gradle/build.gradle
@@ -19,11 +19,15 @@ allprojects {
 
 ext {
     isReleaseVersion = 
Boolean.parseBoolean(System.getenv('GRAILS_PUBLISH_RELEASE'))
-    ext.'signing.keyId' = project.findProperty('signing.keyId') ?: 
System.getenv('SIGNING_KEY')
-    ext.'signing.password' = project.findProperty('signing.password') ?: 
System.getenv('SIGNING_PASSPHRASE')
-    ext.'signing.secretKeyRingFile' = 
project.findProperty('signing.secretKeyRingFile') ?: 
"${System.properties['user.home']}${File.separator}.gnupg${File.separator}secring.gpg"
-    isCiBuild = System.getenv().get('CI') as Boolean
+    isCiBuild = System.getenv().containsKey('CI')
 }
+ext.set('signing.keyId', findProperty('signing.keyId') ?: 
System.getenv('SIGNING_KEY'))
+ext.set('signing.password', findProperty('signing.password') ?: 
System.getenv('SIGNING_PASSPHRASE'))
+ext.set('signing.secretKeyRingFile',
+        findProperty('signing.secretKeyRingFile') ?:
+        
"${System.getProperty('user.home')}${File.separator}.gnupg${File.separator}secring.gpg"
+)
+
 if (isReleaseVersion) {
     apply plugin: 'io.github.gradle-nexus.publish-plugin'
     apply plugin: 'signing'

Reply via email to