Skip to content

Commit

Permalink
compileWebappGroovyPages depends on copyAstClasses (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesfredley authored Sep 17, 2024
1 parent 33ac8ec commit cce76c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ class GrailsPluginGradlePlugin extends GrailsGradlePlugin {
def taskContainer = project.tasks
taskContainer.getByName('classes').dependsOn(copyAstClasses)

try{
taskContainer.getByName('compileWebappGroovyPages').dependsOn(copyAstClasses)
}
catch (ignored) {
}

taskContainer.withType(JavaExec) {
classpath += sourceSets.ast.output
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ class GroovyPagePlugin implements Plugin<Project> {
}

compileWebappGroovyPages.setClasspath( allClasspath )
compileWebappGroovyPages.dependsOn(allTasks.findByName("copyAstClasses"))

project.afterEvaluate {
GrailsExtension grailsExt = project.extensions.getByType(GrailsExtension)
Expand Down

0 comments on commit cce76c0

Please sign in to comment.