From 38e1ed7c78707c324ccc3cb588b0fa3a9916c572 Mon Sep 17 00:00:00 2001 From: Rahul Shishodia Date: Wed, 11 Feb 2026 18:19:34 +0530 Subject: [PATCH 1/2] Preserving Parameter Names --- .../build/gradle/templates/buildGradle.rocker.raw | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/grails-forge/grails-forge-core/src/main/java/org/grails/forge/feature/build/gradle/templates/buildGradle.rocker.raw b/grails-forge/grails-forge-core/src/main/java/org/grails/forge/feature/build/gradle/templates/buildGradle.rocker.raw index a1b84c18580..91564365a2b 100644 --- a/grails-forge/grails-forge-core/src/main/java/org/grails/forge/feature/build/gradle/templates/buildGradle.rocker.raw +++ b/grails-forge/grails-forge-core/src/main/java/org/grails/forge/feature/build/gradle/templates/buildGradle.rocker.raw @@ -142,7 +142,20 @@ assets { } -// https://github.com/apache/grails-core/issues/15321 tasks.withType(GroovyCompile).configureEach { + // encoding needs to be the same since it's different across platforms + groovyOptions.encoding = 'UTF_8' + // Preserve method parameter names in Groovy/Java classes for IDE parameter hints & bean reflection metadata. + groovyOptions.parameters = true + // encoding needs to be the same since it's different across platforms + options.encoding = 'UTF_8' + // https://github.com/apache/grails-core/issues/15321 groovyOptions.optimizationOptions.indy = false } + +tasks.withType(JavaCompile).configureEach { + // Preserve method parameter names in Groovy/Java classes for IDE parameter hints & bean reflection metadata. + options.compilerArgs.add('-parameters') + // encoding needs to be the same since it's different across platforms + options.encoding = 'UTF_8' +} From 127f01e4375400fe2acda65483f843c7aa736339 Mon Sep 17 00:00:00 2001 From: Rahul Shishodia Date: Wed, 11 Feb 2026 20:38:20 +0530 Subject: [PATCH 2/2] updated skeleton build.gradle --- grails-profiles/base/skeleton/build.gradle | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/grails-profiles/base/skeleton/build.gradle b/grails-profiles/base/skeleton/build.gradle index 99627b224f1..3dbf52b2aa3 100644 --- a/grails-profiles/base/skeleton/build.gradle +++ b/grails-profiles/base/skeleton/build.gradle @@ -27,7 +27,20 @@ tasks.withType(Test).configureEach { useJUnitPlatform() } -// https://github.com/apache/grails-core/issues/15321 tasks.withType(GroovyCompile).configureEach { + // encoding needs to be the same since it's different across platforms + groovyOptions.encoding = 'UTF_8' + // Preserve method parameter names in Groovy/Java classes for IDE parameter hints & bean reflection metadata. + groovyOptions.parameters = true + // encoding needs to be the same since it's different across platforms + options.encoding = 'UTF_8' + // https://github.com/apache/grails-core/issues/15321 groovyOptions.optimizationOptions.indy = false } + +tasks.withType(JavaCompile).configureEach { + // Preserve method parameter names in Groovy/Java classes for IDE parameter hints & bean reflection metadata. + options.compilerArgs.add('-parameters') + // encoding needs to be the same since it's different across platforms + options.encoding = 'UTF_8' +}