[build] Preserve file permisions and timestamps in archives (#8532)

Fixes tools not being executable.
This commit is contained in:
sciencewhiz
2026-01-02 09:47:10 -07:00
committed by GitHub
parent d3159c2554
commit 8efdab81fe

View File

@@ -167,6 +167,13 @@ subprojects {
}
}
}
tasks.withType(AbstractArchiveTask).configureEach {
// Use file timestamps from the file system
preserveFileTimestamps = true
// Use permissions from the file system
useFileSystemPermissions()
}
}
ext.getCurrentArch = {