Add set-version.sh
This commit is contained in:
parent
ff392bf0c6
commit
b38b655ca2
1 changed files with 15 additions and 0 deletions
15
set-version.sh
Normal file
15
set-version.sh
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if test $# != 1
|
||||||
|
then
|
||||||
|
echo "next version missing"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
CURRENT=`grep '<version>' pom.xml |head -n 1| sed 's/.*>\(.*\)<.*/\1/'`
|
||||||
|
NEXT=$1
|
||||||
|
|
||||||
|
echo Updating version from $CURRENT to $NEXT
|
||||||
|
|
||||||
|
./mvnw versions:set -DnewVersion=$NEXT
|
||||||
|
perl -p -i -e "s,$CURRENT</,$NEXT</," README.md
|
Loading…
Reference in a new issue