This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a commit to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git


The following commit(s) were added to refs/heads/7.0.x by this push:
     new 8b35c6ded1 ensure compileTestGroovy depends on the template task if 
applied
8b35c6ded1 is described below

commit 8b35c6ded15ec50423d5bcd826a1735683e027bf
Author: James Daugherty <[email protected]>
AuthorDate: Fri Jun 13 13:18:13 2025 -0400

    ensure compileTestGroovy depends on the template task if applied
---
 .../grails/gradle/plugin/views/AbstractGroovyTemplatePlugin.groovy   | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/views/AbstractGroovyTemplatePlugin.groovy
 
b/grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/views/AbstractGroovyTemplatePlugin.groovy
index a37776f576..abe90c4a97 100644
--- 
a/grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/views/AbstractGroovyTemplatePlugin.groovy
+++ 
b/grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/views/AbstractGroovyTemplatePlugin.groovy
@@ -86,6 +86,11 @@ class AbstractGroovyTemplatePlugin implements 
Plugin<Project> {
         tasks.named('resolveMainClassName').configure { Task task ->
             task.dependsOn(templateCompileTask)
         }
+        if(tasks.names.contains('compileTestGroovy')) {
+            tasks.named('compileTestGroovy').configure { Task task ->
+                task.dependsOn(templateCompileTask)
+            }
+        }
         if(project.plugins.hasPlugin(IntegrationTestGradlePlugin)) {
             
project.plugins.withType(IntegrationTestGradlePlugin).configureEach { plugin ->
                 if(tasks.names.contains('compileIntegrationTestGroovy')) {

Reply via email to