Use stable order and constant timestamps in merged sources jar

To avoid up-to-date fights between several kotlin working copies.
This commit is contained in:
Ilya Gorbunov
2020-03-27 02:59:17 +03:00
parent 042424d599
commit 8447701d74
+2
View File
@@ -189,6 +189,8 @@ val makeIntellijAnnotations by tasks.registering(Copy::class) {
val mergeSources by tasks.creating(Jar::class.java) {
dependsOn(sources)
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
from(provider { sources.map(::zipTree) })
destinationDirectory.set(File(repoDir, sources.name))
archiveBaseName.set("intellij")