sync-boot-version.sh 281 B

123456789
  1. #!/bin/bash
  2. export BOOT_VERSION=$1
  3. if [[ "$BOOT_VERSION" == "" ]]; then
  4. echo "Missing boot-version. Usage: sync-boot-version.sh <boot-version>"
  5. exit 1
  6. fi
  7. find -mindepth 2 -name build.gradle | xargs sed -i -E "s/(id 'org.springframework.boot' version ').*?'/\1$BOOT_VERSION'/"