File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 55 <groupId >org.reficio</groupId >
66 <artifactId >p2-maven-plugin</artifactId >
77 <packaging >maven-plugin</packaging >
8- <version >2.0.0-SNAPSHOT </version >
8+ <version >1.7.0 </version >
99 <name >p2-maven-plugin</name >
1010 <url >https://github.com/reficio/p2-maven-plugin</url >
1111 <description >Maven plugin for the automation of jars wrapping and p2 site generation</description >
Original file line number Diff line number Diff line change @@ -48,24 +48,22 @@ function catch_sig() {
4848 clean_exit $exit_status
4949}
5050
51- if [ $# -ne 3 ]; then
52- echo " Usage: release.sh <current_version> < release_version> <new_version>"
51+ if [ $# -ne 2 ]; then
52+ echo " Usage: release.sh <release_version> <new_version>"
5353 exit 1
5454fi
5555
56- current_version=$1
57- release_version=$2
58- new_version=$3
56+ release_version=$1
57+ new_version=$2
58+
59+ mvn versions:set -DnewVersion=$release_version -DgenerateBackupPoms=false
5960
60- 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" {} \;
61- 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" {} \;
6261git commit -a -m " $release_version release"
6362git tag -a v$release_version -a -m " $release_version release"
6463
6564mvn clean deploy -Prelease
6665
67- 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" {} \;
68- 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" {} \;
66+ mvn versions:set -DnewVersion=$new_version -DgenerateBackupPoms=false
6967git commit -a -m " Preparing $new_version iteration"
7068
7169git push
You can’t perform that action at this time.
0 commit comments