Pārlūkot izejas kodu

Add scripts to sync Framework and Security BOMs

Marcus Da Coregio 2 gadi atpakaļ
vecāks
revīzija
18ed50193d
2 mainītis faili ar 20 papildinājumiem un 0 dzēšanām
  1. 10 0
      sync-framework-bom.sh
  2. 10 0
      sync-security-bom.sh

+ 10 - 0
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 <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 - 0
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 <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/"
+