Skip to content

Commit

Permalink
1.7.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
sparsick committed May 23, 2021
1 parent b7f7128 commit 3690429
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>org.reficio</groupId>
<artifactId>p2-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<version>2.0.0-SNAPSHOT</version>
<version>1.7.0</version>
<name>p2-maven-plugin</name>
<url>https://github.com/reficio/p2-maven-plugin</url>
<description>Maven plugin for the automation of jars wrapping and p2 site generation</description>
Expand Down
16 changes: 7 additions & 9 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,22 @@ function catch_sig() {
clean_exit $exit_status
}

if [ $# -ne 3 ]; then
echo "Usage: release.sh <current_version> <release_version> <new_version>"
if [ $# -ne 2 ]; then
echo "Usage: release.sh <release_version> <new_version>"
exit 1
fi

current_version=$1
release_version=$2
new_version=$3
release_version=$1
new_version=$2

mvn versions:set -DnewVersion=$release_version -DgenerateBackupPoms=false

find . \( -name "pom.xml" -or -name "README.md" \) -not -path "*/src/it/*" -not -path "*/target/*" -not -path "*svn*" -not -path "*git*" -exec sed -i "" "s#<version>$current_version</version>#<version>$release_version</version>#g" {} \;
find . \( -name "pom.xml" -or -name "README.md" \) -not -path "*/src/it/*" -not -path "*/target/*" -not -path "*svn*" -not -path "*git*" -exec sed -i "" "s#projects.reficio.org/p2-maven-plugin/$current_version#projects.reficio.org/p2-maven-plugin/$release_version#g" {} \;
git commit -a -m "$release_version release"
git tag -a v$release_version -a -m "$release_version release"

mvn clean deploy -Prelease

find . \( -name "pom.xml" -or -name "README.md" \) -not -path "*/src/it/*" -not -path "*/target/*" -not -path "*svn*" -not -path "*git*" -exec sed -i "" "s#<version>$release_version</version>#<version>$new_version</version>#g" {} \;
find . \( -name "pom.xml" -or -name "README.md" \) -not -path "*/src/it/*" -not -path "*/target/*" -not -path "*svn*" -not -path "*git*" -exec sed -i "" "s#projects.reficio.org/p2-maven-plugin/$release_version#projects.reficio.org/p2-maven-plugin/$new_version#g" {} \;
mvn versions:set -DnewVersion=$new_version -DgenerateBackupPoms=false
git commit -a -m "Preparing $new_version iteration"

git push
Expand Down

0 comments on commit 3690429

Please sign in to comment.