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


##########
grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/core/GrailsGradlePlugin.groovy:
##########
@@ -386,17 +381,34 @@ class GrailsGradlePlugin extends GroovyPlugin {
 
     @CompileStatic
     protected void configureMicronaut(Project project) {
-        final String micronautVersion = project.properties['micronautVersion']
-        if (micronautVersion) {
-            project.configurations.configureEach({ Configuration configuration 
->
-                configuration.resolutionStrategy.eachDependency({ 
DependencyResolveDetails details ->
+        project.afterEvaluate {
+            boolean micronautEnabled = 
project.getConfigurations().getByName("implementation").getDependencies().findAll
 { Dependency dep -> dep.group == 'org.apache.grails' && dep.name == 
'grails-micronaut' } as boolean
+            if (!micronautEnabled) {
+                return
+            }
+            project.logger.lifecycle('Micronaut Support Detected for {}', 
project.path)

Review Comment:
   This is currently logging the following for a root project:
   
   `Micronaut Support Detected for :`



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