Files
spring-ldap-samples/sync-boot-version.sh
2024-10-07 12:07:20 -06:00

9 lines
281 B
Bash
Executable File

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