Add scripts to sync Framework and Security BOMs

This commit is contained in:
Marcus Da Coregio
2023-06-22 09:53:24 -03:00
parent 3a59370ac9
commit 18ed50193d
2 changed files with 20 additions and 0 deletions

10
sync-framework-bom.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/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/"

10
sync-security-bom.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/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/"