jdaugherty commented on issue #13028:
URL: https://github.com/apache/grails-core/issues/13028#issuecomment-3774375044

   This is likely caused by the parameters option not being enabled on your 
application.  Using `@Qualifier` can fix the injection.  We should change forge 
to include this by default.  Grails core does this for its own project: 
   
           project.tasks.withType(JavaCompile).configureEach {
               // Preserve method parameter names in Groovy/Java classes for 
IDE parameter hints & bean reflection metadata.
               it.options.compilerArgs.add('-parameters')
               // encoding needs to be the same since it's different across 
platforms
               it.options.encoding = StandardCharsets.UTF_8.name()
               it.options.fork = true
               it.options.forkOptions.jvmArgs = ['-Xms128M', '-Xmx2G']
           }
   
           project.plugins.withId('groovy') {
               project.tasks.withType(GroovyCompile).configureEach {
                   // encoding needs to be the same since it's different across 
platforms
                   it.groovyOptions.encoding = StandardCharsets.UTF_8.name()
                   // Preserve method parameter names in Groovy/Java classes 
for IDE parameter hints & bean reflection metadata.
                   it.groovyOptions.parameters = true
                   // encoding needs to be the same since it's different across 
platforms
                   it.options.encoding = StandardCharsets.UTF_8.name()
                   it.options.fork = true
                   it.options.forkOptions.jvmArgs = ['-Xms128M', '-Xmx2G']
               }
           }


-- 
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]

Reply via email to