Skip to content

Commit 37138c6

Browse files
committed
fix: make GSP Gradle plugin order-independent
1 parent 09ee1b4 commit 37138c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/views/gsp/GroovyPagePlugin.groovy

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ class GroovyPagePlugin implements Plugin<Project> {
4646

4747
@Override
4848
void apply(Project project) {
49+
project.pluginManager.withPlugin('groovy') {
50+
configureProject(project)
51+
}
52+
}
53+
54+
private void configureProject(Project project) {
4955
TaskContainer tasks = project.tasks
5056

5157
project.configurations.register('gspCompile')

0 commit comments

Comments
 (0)