From 8efdab81fe9d628d8a448e21496fb1e30ae01000 Mon Sep 17 00:00:00 2001 From: sciencewhiz Date: Fri, 2 Jan 2026 09:47:10 -0700 Subject: [PATCH] [build] Preserve file permisions and timestamps in archives (#8532) Fixes tools not being executable. --- build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.gradle b/build.gradle index ffdc11bc79..c39c0edbcb 100644 --- a/build.gradle +++ b/build.gradle @@ -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 = {