Skip to content

Commit

Permalink
updates bumpver_isis.sh to use mvn versions:set rather than sed
Browse files Browse the repository at this point in the history
  • Loading branch information
danhaywood committed Feb 16, 2017
1 parent 636c9c8 commit 889e54d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions bumpver_isis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ if [ ! "$VERSION" ]; then
exit 1
fi

MODULE_DIR=dom

# edit parent pom.xml
echo "editing parent pom.xml"
cat pom.xml | sed "s/<isis.version>.*</<isis.version>$VERSION</" > pom.xml.$$.sed
mv pom.xml.$$.sed pom.xml
echo mvn versions:update-parent "-DparentVersion=[${VERSION}]"
mvn versions:update-parent "-DparentVersion=[${VERSION}]"

# edit dom's pom.xml
echo "editing dom's pom.xml"
pushd dom >/dev/null
cat pom.xml | sed "s/<isis.version>.*</<isis.version>$VERSION</" > pom.xml.$$.sed
mv pom.xml.$$.sed pom.xml
popd >/dev/null
# edit MODULE_DIR's pom.xml
echo "editing $MODULE_DIR's pom.xml"
echo mvn -pl $MODULE_DIR versions:update-parent "-DparentVersion=[${VERSION}]"
mvn -pl $MODULE_DIR versions:update-parent "-DparentVersion=[${VERSION}]"

echo "Committing changes"
git commit -am "bumping isis.version to $VERSION"
git commit -am "bumping incode-parent (isis) version to $VERSION"

0 comments on commit 889e54d

Please sign in to comment.