From 18ed50193dd68fced0ca2c54f8eeb77cb708f456 Mon Sep 17 00:00:00 2001 From: Marcus Da Coregio Date: Thu, 22 Jun 2023 09:53:24 -0300 Subject: [PATCH] Add scripts to sync Framework and Security BOMs --- sync-framework-bom.sh | 10 ++++++++++ sync-security-bom.sh | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100755 sync-framework-bom.sh create mode 100755 sync-security-bom.sh 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/" +