Skip to content

Commit 7e21492

Browse files
author
Yves Fischer
committed
Allow custom properties in grails.build.info
Fix for #9740
1 parent 1ee250b commit 7e21492

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

grails-gradle-plugin/src/main/groovy/org/grails/gradle/plugin/core/GrailsGradlePlugin.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ class GrailsGradlePlugin extends GroovyPlugin {
9292
}
9393

9494
protected Task createBuildPropertiesTask(Project project) {
95-
9695
def buildInfoFile = project.file("${project.buildDir}/grails.build.info")
9796

9897
def buildPropertiesTask = project.tasks.create("buildProperties")
@@ -106,7 +105,7 @@ class GrailsGradlePlugin extends GroovyPlugin {
106105
buildPropertiesTask << {
107106
project.buildDir.mkdirs()
108107
ant.propertyfile(file: buildInfoFile) {
109-
for(me in buildPropertiesContents) {
108+
for(me in buildPropertiesTask.inputs.properties) {
110109
entry key: me.key, value: me.value
111110
}
112111
}

0 commit comments

Comments
 (0)