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 733d8ce85a70d6aab9ded07b3f8135a59027220f Author: James Daugherty <[email protected]> AuthorDate: Fri Jul 10 09:41:17 2026 -0400 Handle already generated profile.yml to support build reproducibility --- .../grails/gradle/plugin/profiles/GrailsProfileGradlePlugin.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/profiles/GrailsProfileGradlePlugin.groovy b/grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/profiles/GrailsProfileGradlePlugin.groovy index 2d5d778d86..5a8d2d36f3 100644 --- a/grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/profiles/GrailsProfileGradlePlugin.groovy +++ b/grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/profiles/GrailsProfileGradlePlugin.groovy @@ -190,9 +190,9 @@ class GrailsProfileGradlePlugin implements Plugin<Project> { TaskProvider<Jar> sourcesJarTask = project.tasks.register('sourcesJar', Jar) sourcesJarTask.configure { Jar jar -> jar.from(project.layout.projectDirectory.dir('commands')) - if (project.file('profile.yml').exists()) { - jar.from(project.file('profile.yml')) - } + // profile.yml may be generated by another task, so it must be resolved + // at execution time; a missing file is silently skipped by the copy spec + jar.from(project.file('profile.yml')) jar.from(project.layout.projectDirectory.dir('templates')) { CopySpec spec -> spec.into('templates') }
