Skip to content

Commit

Permalink
Merge pull request #13 from grails/changeMnInjectGroovyScope
Browse files Browse the repository at this point in the history
Update GrailsGradlePlugin
  • Loading branch information
puneetbehl authored Jul 11, 2021
2 parents 41871bb + 869e5e4 commit 5c7dae9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,9 @@ class GrailsGradlePlugin extends GroovyPlugin {
agent
}
final String micronautVersion = project.properties['micronautVersion']
project.dependencies.add("runtimeOnly", "io.micronaut:micronaut-inject-groovy:${micronautVersion?:defaultMicronautVersion}")
if (project.configurations.findByName("developmentOnly")) {
project.dependencies.add("developmentOnly", "io.micronaut:micronaut-inject-groovy:${micronautVersion?:defaultMicronautVersion}")
}
project.afterEvaluate(new AgentTasksEnhancer())
}
}
Expand Down

0 comments on commit 5c7dae9

Please sign in to comment.