11 lines
306 B
Bash
Executable File
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/"
|
|
|