rahulshishodia commented on code in PR #15382:
URL: https://github.com/apache/grails-core/pull/15382#discussion_r2868447784
##########
grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/core/GrailsGradlePlugin.groovy:
##########
@@ -229,14 +229,18 @@ class GrailsGradlePlugin implements Plugin<Project> {
// Configure indy and log status after evaluation so user's grails { }
block has been applied
project.afterEvaluate {
boolean indyEnabled = grailsExtension?.indy?.getOrElse(false) ?:
false
+ boolean preserveParameterNames =
grailsExtension?.preserveParameterNames != null
+ ? grailsExtension.preserveParameterNames.getOrElse(true) : true
project.tasks.withType(GroovyCompile).configureEach {
GroovyCompile c ->
c.groovyOptions.optimizationOptions.indy = indyEnabled
+ c.groovyOptions.parameters = preserveParameterNames
}
if (!indyEnabled) {
project.logger.info('Grails: Groovy invokedynamic (indy) is
disabled to improve performance (see issue #15293).')
project.logger.info(' To enable invokedynamic: grails {
indy = true } in build.gradle')
}
- }
+ project.logger.info("Grails: Parameter name preservation is
${preserveParameterNames ? 'enabled' : 'disabled'} (-parameters flag). " +
Review Comment:
I have removed the comment.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]