Skip to content

Commit

Permalink
Update GrailsGradlePlugin
Browse files Browse the repository at this point in the history
to add micronaut-inject-groovy with developmentOnly scope instead of runtimeOnly.

Fixes grails/gorm-hibernate5#253
  • Loading branch information
puneetbehl committed Jul 11, 2021
1 parent 41871bb commit 869e5e4
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 869e5e4

Please sign in to comment.