jamesfredley commented on code in PR #15417:
URL: https://github.com/apache/grails-core/pull/15417#discussion_r2835772528


##########
grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/core/GrailsGradlePlugin.groovy:
##########
@@ -585,7 +589,7 @@ class GrailsGradlePlugin extends GroovyPlugin {
      */
     protected void configureToolchainForForkTasks(Project project) {
         project.afterEvaluate {

Review Comment:
   Good catch - replaced `afterEvaluate` with `plugins.withId('java')` + 
`configureEach` in b3c414b875. The `configureEach` closure defers until task 
realization (post-evaluation), so the toolchain check works without 
`afterEvaluate`. Now matches the pattern used by 
`configureJavaCompatibilityArgs` right below it.



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