File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,13 @@ dependencies {
36
36
// Java handling
37
37
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38
38
39
+ // To force the build produce the same byte-for-byte archives and hence make Hibernate Models build reproducible.
40
+ // See also https://docs.gradle.org/current/userguide/working_with_files.html#sec:reproducible_archives
41
+ tasks. withType(AbstractArchiveTask ). configureEach {
42
+ preserveFileTimestamps = false
43
+ reproducibleFileOrder = true
44
+ }
45
+
39
46
java {
40
47
sourceCompatibility = jdks. versions. baseline. get() as int
41
48
targetCompatibility = jdks. versions. baseline. get() as int
@@ -108,4 +115,4 @@ jacocoTestReport {
108
115
109
116
tasks. named( " check" ) {
110
117
dependsOn jacocoReportTask
111
- }
118
+ }
You can’t perform that action at this time.
0 commit comments