Files
spring-security-samples/sync-security-bom.sh
2023-06-22 09:53:24 -03:00

11 lines
306 B
Bash
Executable File

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