From 17742b4c02ff75a7545cfbeea2729c13c13ead5b Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Sat, 24 Dec 2022 18:14:52 +0100 Subject: [PATCH] Stabilize order of entries in maven.zip KTI-1077 --- scripts/build-kotlin-maven.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-kotlin-maven.sh b/scripts/build-kotlin-maven.sh index 04911ba059d..6e4a9467053 100755 --- a/scripts/build-kotlin-maven.sh +++ b/scripts/build-kotlin-maven.sh @@ -52,4 +52,4 @@ cp -R build/repo/. build/repo-reproducible find build/repo-reproducible -name "maven-metadata.xml*" -exec rm -rf {} \; # Each file has own timestamp that would affect zip file hash if not aligned find build/repo-reproducible -exec touch -t "198001010000" {} \; -cd build/repo-reproducible && zip -rX reproducible-maven-$DEPLOY_VERSION.zip . && cd - +cd build/repo-reproducible && find . -type f | sort | zip -X reproducible-maven-$DEPLOY_VERSION.zip -@ && cd -