Skip to content

Commit

Permalink
Add scripts to bump the XOOM version
Browse files Browse the repository at this point in the history
  • Loading branch information
jakzal committed Sep 5, 2021
1 parent 6787204 commit ca39369
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/next-dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh
VERSION=$1

[[ "$VERSION" != "" ]] || (echo "The version has to be passed as the first argument" && exit)

SCRIPT_PATH=$(cd -- "$(dirname "$0")/" >/dev/null 2>&1 ; pwd -P)

$SCRIPT_PATH/update-version.sh $VERSION

find . -iname README.md | xargs sed -i'.bkp' -e 's/[1-9]*.[0-9]*.[0-9]*-SNAPSHOT/'$VERSION'/g'
find . -iname README.md | xargs git add

sed -i'.bkp' -e 's/[1-9]*.[0-9]*.[0-9]*-SNAPSHOT/'$VERSION'/g' xoom-petclinic/petclinic-generation-settings.json
git add xoom-petclinic/petclinic-generation-settings.json

git commit -m "Next development version $VERSION"
git push --follow-tags
14 changes: 14 additions & 0 deletions .github/update-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

VERSION=${1}

[[ "$VERSION" != "" ]] || (echo "The version has to be passed as the first argument" && exit)

for m in . xoom-petclinic xoom-vs-spring-perf/xoom xoom-e2e-sys-airline-ops ; do
mvn versions:set -DnewVersion=$VERSION -DprocessAllModules=true -DgenerateBackupPoms=false -f $m/pom.xml
mvn versions:use-dep-version -Dincludes=io.vlingo.xoom -DdepVersion=$VERSION -DforceVersion=true -DgenerateBackupPoms=false -f $m/pom.xml
mvn versions:set-property -Dproperty=vlingo.xoom.version -DnewVersion=$VERSION -DgenerateBackupPoms=false -f $m/pom.xml
mvn versions:set-property -Dproperty=xoom.version -DnewVersion=$VERSION -DgenerateBackupPoms=false -f $m/pom.xml
done

git add pom.xml */pom.xml */*/pom.xml

0 comments on commit ca39369

Please sign in to comment.