Stabilize order of entries in maven.zip

KTI-1077
This commit is contained in:
Nikolay Krasko
2022-12-24 18:14:52 +01:00
committed by Space Team
parent fb9dead107
commit 17742b4c02
+1 -1
View File
@@ -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 -