Merge pull request #128 from kemitix/update-set-version

Make set-version update versions correctly
This commit is contained in:
Paul Campbell 2018-10-07 18:21:12 +01:00 committed by GitHub
commit 5e061ad984
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View file

@ -49,7 +49,7 @@ The simplest way to use the ruleset is with the maven-tile:
<extensions>true</extensions> <extensions>true</extensions>
<configuration> <configuration>
<tiles> <tiles>
<tile>net.kemitix.checkstyle:tile:RELEASE</tile> <tile>net.kemitix.checkstyle:tile:DEV-SNAPSHOT</tile>
</tiles> </tiles>
</configuration> </configuration>
</plugin> </plugin>

View file

@ -1,15 +1,15 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if test $# != 2 if test $# != 1
then then
echo "current and next version missing" echo "Next version missing"
exit exit
fi fi
CURRENT=$1 NEXT=$1
NEXT=$2
echo Updating version from $CURRENT to $NEXT echo "Updating version to $NEXT..."
mvn versions:set -DnewVersion=$NEXT -DgenerateBackupPoms=false -DprocessAllModules
mvn versions:set -DnewVersion=$NEXT echo "Updating README template..."
perl -p -i -e "s,$CURRENT</,$NEXT</," builder/pom.xml builder/src/main/resources/README-template.md ruleset/pom.xml tile/pom.xml tile/tile.xml perl -p -i -e "s,DEV-SNAPSHOT</,$NEXT</," builder/src/main/resources/README-template.md
echo "Done."