Move gradle config for reproducible builds into init.gradle file

This commit is contained in:
Jonas Herzig
2017-08-28 14:50:27 +02:00
parent 95fc9a5248
commit ad3ff3e8ef
20 changed files with 28 additions and 321 deletions

View File

@@ -2,7 +2,7 @@
set -e
set -x
cd gradle/reprod
pushd gradle/reprod
SHA256SUM="sha256sum"
command -v "$SHA256SUM" > /dev/null 2>&1 || SHA256SUM="shasum -a 256" # OSX
@@ -44,7 +44,7 @@ setup_dep () {
cp ../../../../gradlew .
chmod +x gradlew
./gradlew build -x test
./gradlew -I ../../init.gradle build -x test
actual_hash=$(sha256val "$jar")
if [ "$actual_hash" != "$jarhash" ]; then
@@ -87,3 +87,7 @@ pushd tmp
git commit -m "Add build.gradle"
git am ../patches/replaymod/*.patch
popd
popd # Back to root
./gradlew -Preprod -I gradle/reprod/init.gradle "$@"