forked from GriefPrevention/GriefPrevention
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
2 changed files
with
25 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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
*.class | ||
|
||
# versions-maven-plugin pom backup | ||
*.xml.versionsBackup | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
|
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,22 @@ | ||
#!/bin/bash | ||
|
||
if [[ ! $1 ]]; then | ||
echo "Please provide a version string." | ||
return | ||
fi | ||
|
||
version="$1" | ||
snapshot="${version%.*}.$((${version##*.} + 1))-SNAPSHOT" | ||
|
||
mvn versions:set -DnewVersion="$version" | ||
|
||
git add . | ||
git commit -S -m "Bump version to $version for release" | ||
git tag -s "$version" -m "Release $version" | ||
|
||
mvn clean package -am | ||
|
||
mvn versions:set -DnewVersion="$snapshot" | ||
|
||
git add . | ||
git commit -S -m "Bump version to $snapshot for development" |