Skip to content

Commit 0916c1a

Browse files
committed
Don't apply the Groovy plugin if it has already been applied. Fixes #10197
1 parent 5efc269 commit 0916c1a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

grails-gradle-plugin/src/main/groovy/org/grails/gradle/plugin/core/GrailsGradlePlugin.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ class GrailsGradlePlugin extends GroovyPlugin {
8383

8484
@CompileStatic
8585
void apply(Project project) {
86-
super.apply(project)
86+
if( project.tasks.findByName('compileGroovy') == null ) {
87+
super.apply(project)
88+
}
8789

8890
configureProfile(project)
8991

0 commit comments

Comments
 (0)