jdaugherty commented on code in PR #14953:
URL: https://github.com/apache/grails-core/pull/14953#discussion_r2257831843
##########
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:
i could output the name instead of the colon... but the colon is the root
path
--
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]