update-dependency-pinning.sh 567 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
    'briar-api'
    'briar-core'
    'briar-android'
12
    'briar-headless'
13 14 15 16 17 18 19 20 21 22 23 24
)

# 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} ..."
25
    ./gradlew -q ${project}:calculateChecksums | grep -v '^\(Skipping\|Verifying\)' > ${project}/witness.gradle
26
done