@@ -153,20 +153,23 @@ publishing {
153153}
154154
155155task syncProps {
156- def gradlePropertiesFile = rootProject. layout. projectDirectory. file(' gradle.properties' ). asFile
157- String oldProperties = gradlePropertiesFile. text
158- gradlePropertiesFile. write(oldProperties. substring(0 , oldProperties. indexOf(" # Generated on" )) + """ \
156+ doLast {
157+ def gradlePropertiesFile = rootProject. layout. projectDirectory. file(' gradle.properties' ). asFile
158+ String oldProperties = gradlePropertiesFile. text
159+ gradlePropertiesFile. write(oldProperties. substring(0 , oldProperties. indexOf(" # Generated on" )) + """ \
159160 # Generated on ${ new Date()} by: ./gradlew :grails-bom:${ name}
160161 # Only version value modifications allowed after this point. Do not insert or change version names.
161162 ${ dependenciesVersions.collect { "$it.version=$it.versionValue" }.join('\n ')}
162163 """ . stripIndent(true ). trim())
163- println " ${ gradlePropertiesFile} updated."
164+ println " ${ gradlePropertiesFile} updated."
165+ }
164166}
165167
166168task dependabotBuild {
167- def dependabotBuildFile = rootProject. layout. projectDirectory. file(' dependabot/build.gradle' ). asFile
168- dependabotBuildFile. parentFile. mkdirs()
169- dependabotBuildFile. write(""" \
169+ doLast {
170+ def dependabotBuildFile = rootProject. layout. projectDirectory. file(' dependabot/build.gradle' ). asFile
171+ dependabotBuildFile. parentFile. mkdirs()
172+ dependabotBuildFile. write(""" \
170173 // Generated on ${ new Date()} by: ./gradlew :grails-bom:${ name}
171174 plugins {
172175 id 'java-library'
@@ -176,7 +179,8 @@ task dependabotBuild {
176179 ${ allDependencies.collect { " api \"${it.groupId}:${it.artifactId}:\${project['${it.version}']}\"" }.join('\n ')}
177180 }
178181 """ . stripIndent(true ). trim())
179- println " ${ dependabotBuildFile} created."
182+ println " ${ dependabotBuildFile} created."
183+ }
180184}
181185
182186task dependabot {
0 commit comments