diff --git a/sync-framework-bom.sh b/sync-framework-bom.sh new file mode 100755 index 0000000..9c2fd19 --- /dev/null +++ b/sync-framework-bom.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +export BOM_VERSION=$1 + +if [[ "$BOM_VERSION" == "" ]]; then + echo "Missing framework-bom-version. Usage: sync-framework-bom.sh " + exit 1 +fi +find . -mindepth 2 -name build.gradle | xargs sed -i '' -E "s/(\"org.springframework:spring-framework-bom:)[^:\"]+/\1$BOM_VERSION/" + diff --git a/sync-security-bom.sh b/sync-security-bom.sh new file mode 100755 index 0000000..8610c98 --- /dev/null +++ b/sync-security-bom.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +export BOM_VERSION=$1 + +if [[ "$BOM_VERSION" == "" ]]; then + echo "Missing security-bom-version. Usage: sync-security-bom.sh " + exit 1 +fi +find . -mindepth 2 -name build.gradle | xargs sed -i '' -E "s/(\"org.springframework.security:spring-security-bom:)[^:\"]+/\1$BOM_VERSION/" +