Spring-Security-Samples/sync-dependency-management.sh

9 lines
271 B
Bash
Executable File

#!/bin/bash
export VERSION=$1
if [[ "VERSION" == "" ]]; then
echo "Missing version. Usage: sync-dependency-management.sh <version>"
exit 1
fi
find -mindepth 2 -name build.gradle | xargs sed -i -E "s/(id 'io.spring.dependency-management' version ').*?'/\1$VERSION'/"