update-dependency-pinning.sh 532 Bytes
Newer Older
1 2 3 4 5 6 7
#!/bin/bash
set -e

PROJECTS=(
    'bramble-api'
    'bramble-core'
    'bramble-android'
8
    'bramble-java'
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
    'briar-api'
    'briar-core'
    'briar-android'
)

# clear witness files to prevent errors when upgrading dependencies
for project in ${PROJECTS[@]}
do
    echo "" > ${project}/witness.gradle
done

# calculating new checksums
for project in ${PROJECTS[@]}
do
    echo "Calculating new checksums for ${project} ..."
24
    ./gradlew -q ${project}:calculateChecksums | grep -v '^Verifying' > ${project}/witness.gradle
25
done