2018-02-28 07:03:28 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-02-28 18:35:09 +00:00
|
|
|
cd `dirname $0`
|
|
|
|
PROJECT=`basename $PWD`
|
|
|
|
|
2018-02-28 07:03:28 +00:00
|
|
|
if test $# != 1
|
|
|
|
then
|
|
|
|
echo "next version missing"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2018-02-28 18:35:09 +00:00
|
|
|
CURRENT=`grep -C 2 "<artifactId>${PROJECT}</artifactId>" pom.xml | grep '<version>' | sed 's/.*>\(.*\)<.*/\1/'`
|
2018-02-28 07:03:28 +00:00
|
|
|
NEXT=$1
|
|
|
|
|
|
|
|
echo Updating version from $CURRENT to $NEXT
|
|
|
|
|
|
|
|
./mvnw versions:set -DnewVersion=$NEXT
|
2018-02-28 18:35:09 +00:00
|
|
|
./mvnw -pl parent versions:set -DnewVersion=$NEXT
|
|
|
|
perl -p -i -e "s,$CURRENT</,$NEXT</," all/tile.xml README.md
|