-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scripts to bump the XOOM version
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |