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

11 lines
300 B
Bash
Executable File

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