-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ab8f51
commit 90e5d00
Showing
3 changed files
with
29 additions
and
6 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
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,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
CURRENT_VERSION=`xmllint --xpath '/*[local-name()="project"]/*[local-name()="version"]/text()' pom.xml` | ||
|
||
if [[ $CURRENT_VERSION != *-SNAPSHOT ]]; then | ||
NEXT_VERSION=`bash ci/semver.sh -p CURRENT_VERSION` | ||
NEXT_SNAPSHOT="$NEXT_VERSION-SNAPSHOT" | ||
|
||
mvn versions:set -DnewVersion=$NEXT_SNAPSHOT versions:commit --no-transfer-progress | ||
|
||
echo "commit new snapshot version" | ||
git commit -a -m "Release $NEW_VERSION: set 6.2 to next development version $NEXT_SNAPSHOT" | ||
|
||
git push --all | ||
fi |
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