update-dependency-pinning.sh 608 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. set -e
  3. PROJECTS=(
  4. 'bramble-api'
  5. 'bramble-core'
  6. 'bramble-android'
  7. 'bramble-java'
  8. 'briar-api'
  9. 'briar-core'
  10. 'briar-android'
  11. 'briar-headless'
  12. )
  13. # clear witness files to prevent errors when upgrading dependencies
  14. for project in ${PROJECTS[@]}
  15. do
  16. echo "" > ${project}/witness.gradle
  17. done
  18. # calculating new checksums
  19. for project in ${PROJECTS[@]}
  20. do
  21. echo "Calculating new checksums for ${project} ..."
  22. ./gradlew -q --configure-on-demand ${project}:calculateChecksums | grep -v '^\(Skipping\|Verifying\|Welcome to Gradle\)' > ${project}/witness.gradle
  23. done