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

9 lines
271 B
Bash
Raw Normal View History

2020-08-27 16:25:34 -04:00
#!/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'/"