kemitix-checkstyle-ruleset/set-version.sh

20 lines
424 B
Bash
Raw Permalink Normal View History

2018-01-24 21:56:07 +00:00
#!/usr/bin/env bash
if test $# != 1
2018-01-24 21:56:07 +00:00
then
echo "Next version missing"
2018-01-24 21:56:07 +00:00
exit
fi
NEXT=$1
2018-01-24 21:56:07 +00:00
echo "Updating version to $NEXT..."
2018-11-07 11:03:08 +00:00
SET_VERSION="mvn versions:set -DnewVersion=$NEXT -DgenerateBackupPoms=false -pl"
$SET_VERSION .
$SET_VERSION builder
$SET_VERSION tile
$SET_VERSION ruleset
echo "Updating README template..."
2018-11-07 11:03:08 +00:00
perl -p -i -e "s,DEV-SNAPSHOT</,$NEXT</," builder/src/main/resources/README-template.md
echo "Done."