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

commit 2d43860d1142b4467cdc1e4cf3e1793a947000a7
Author: James Daugherty <[email protected]>
AuthorDate: Fri Jul 10 09:40:45 2026 -0400

    Fix test app reproducibility
---
 .../rest/testapp-profile/build.gradle              | 27 ++++++++++++++--------
 1 file changed, 17 insertions(+), 10 deletions(-)

diff --git a/grails-spring-security/rest/testapp-profile/build.gradle 
b/grails-spring-security/rest/testapp-profile/build.gradle
index 3ab191d4f7..41e734d098 100644
--- a/grails-spring-security/rest/testapp-profile/build.gradle
+++ b/grails-spring-security/rest/testapp-profile/build.gradle
@@ -32,20 +32,22 @@ ext {
 }
 
 tasks.register('generateProfileConfig') {
-    copy {
-        from 'profile.yml.tmpl'
-        into '.'
-        rename { String fileName -> fileName.replaceAll '\\.tmpl', '' }
-        expand(pluginVersion: project.version, grailsVersion: 
findProperty('projectVersion'))
-    }
-
-    file('features').eachDir { feature ->
+    doLast {
         copy {
-            from "features/${feature.name}/feature.yml.tmpl"
-            into "features/${feature.name}/"
+            from 'profile.yml.tmpl'
+            into '.'
             rename { String fileName -> fileName.replaceAll '\\.tmpl', '' }
             expand(pluginVersion: project.version, grailsVersion: 
findProperty('projectVersion'))
         }
+
+        file('features').eachDir { feature ->
+            copy {
+                from "features/${feature.name}/feature.yml.tmpl"
+                into "features/${feature.name}/"
+                rename { String fileName -> fileName.replaceAll '\\.tmpl', '' }
+                expand(pluginVersion: project.version, grailsVersion: 
findProperty('projectVersion'))
+            }
+        }
     }
 }
 
@@ -56,3 +58,8 @@ dependencies {
 tasks.named('compileProfile') {
     dependsOn('generateProfileConfig')
 }
+
+// The sources jar packages the generated profile.yml, so it must be created 
first
+tasks.named('sourcesJar') {
+    dependsOn('generateProfileConfig')
+}

Reply via email to