Skip to content

Commit 612e544

Browse files
committed
Make profiles reproducible
1 parent 827f2fe commit 612e544

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/profiles/GrailsProfileGradlePlugin.groovy

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ class GrailsProfileGradlePlugin implements Plugin<Project> {
214214
jar.from(project.files(project.layout.buildDirectory.dir('resources/profile'), project.layout.buildDirectory.dir('classes/profile')))
215215
jar.destinationDirectory.set(project.layout.buildDirectory.dir('libs'))
216216
jar.description = 'Assembles a jar archive containing the profile classes.'
217+
jar.reproducibleFileOrder = true
218+
jar.preserveFileTimestamps = false
217219
}
218220

219221
TaskProvider<Jar> sourcesJarTask = project.tasks.register('sourcesProfileJar', Jar)
@@ -231,6 +233,8 @@ class GrailsProfileGradlePlugin implements Plugin<Project> {
231233
jar.archiveClassifier.set('sources')
232234
jar.destinationDirectory.set(new File(project.layout.buildDirectory.asFile.get(), 'libs'))
233235
jar.description = 'Assembles a jar archive containing the profile sources.'
236+
jar.reproducibleFileOrder = true
237+
jar.preserveFileTimestamps = false
234238
jar.group = BUILD_GROUP
235239
}
236240

@@ -244,6 +248,8 @@ class GrailsProfileGradlePlugin implements Plugin<Project> {
244248
jar.destinationDirectory.set(new File(project.layout.buildDirectory.asFile.get(), 'libs'))
245249
jar.description = 'Assembles a jar archive containing the profile javadoc.'
246250
jar.group = BUILD_GROUP
251+
jar.reproducibleFileOrder = true
252+
jar.preserveFileTimestamps = false
247253
}
248254

249255
project.tasks.named('assemble').configure { Task it ->

0 commit comments

Comments
 (0)