Skip to content

Commit 08826bf

Browse files
committed
14017 - doc - add documentation for why parameters must always be enabled
1 parent 6507fc8 commit 08826bf

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

gradle/java-config.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ tasks.withType(Javadoc).configureEach { Javadoc it ->
3434

3535
tasks.withType(GroovyCompile).configureEach {
3636
groovyOptions.encoding = 'UTF-8' // encoding needs to be the same since it's different across platforms
37-
// Preserve method parameter names in Groovy classes for IDE parameter hints.
37+
// Preserve method parameter names in Groovy/Java classes for IDE parameter hints & bean reflection metadata.
3838
groovyOptions.parameters = true
3939
options.encoding = 'UTF-8' // encoding needs to be the same since it's different across platforms
4040
options.fork = true

grails-forge/gradle/java-config.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ extensions.configure(JavaPluginExtension) {
2727

2828
tasks.withType(JavaCompile).configureEach {
2929
options.encoding = 'UTF-8'
30+
// Preserve method parameter names in Java classes for IDE parameter hints & bean reflection metadata.
3031
options.compilerArgs.add('-parameters')
3132
}
3233

grails-gradle/gradle/java-config.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ tasks.named('sourcesJar', Jar).configure { Jar jar ->
4848

4949
tasks.withType(GroovyCompile).configureEach {
5050
groovyOptions.encoding = 'UTF-8' // encoding needs to be the same since it's different across platforms
51-
// Preserve method parameter names in Groovy classes for IDE parameter hints.
51+
// Preserve method parameter names in Groovy/Java classes for IDE parameter hints & bean reflection metadata.
5252
groovyOptions.parameters = true
5353
options.encoding = 'UTF-8' // encoding needs to be the same since it's different across platforms
5454
options.fork = true

0 commit comments

Comments
 (0)