You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by si...@apache.org on 2019/03/19 13:08:36 UTC
[pulsar] branch master updated: Fix set-project-version.sh (#3847)
This is an automated email from the ASF dual-hosted git repository.
sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new aace3e5 Fix set-project-version.sh (#3847)
aace3e5 is described below
commit aace3e59a8ccbd9a9395daa61226ef68249d28d9
Author: Sijie Guo <gu...@gmail.com>
AuthorDate: Tue Mar 19 21:08:32 2019 +0800
Fix set-project-version.sh (#3847)
*Motivation*
The script doesn't update the parent version for protobuf-shaded module
*Modifications*
use `versions:update-parent` to update parent version
---
src/set-project-version.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/set-project-version.sh b/src/set-project-version.sh
index a1ff32a..4cd7d64 100755
--- a/src/set-project-version.sh
+++ b/src/set-project-version.sh
@@ -33,6 +33,9 @@ pushd $(dirname "$0")/..
mvn versions:set -DnewVersion=$NEW_VERSION
mvn versions:set -DnewVersion=$NEW_VERSION -pl buildtools
mvn versions:set -DnewVersion=$NEW_VERSION -pl pulsar-sql/presto-distribution
+# install the new version of root pom local, so `update-parent` can update the right parent version
+mvn -am -pl . clean install -DskipTests
+mvn versions:update-parent -DallowSnapshots=true -DparentVersion=$NEW_VERSION -f protobuf-shaded/pom.xml
mvn versions:set -DnewVersion=$NEW_VERSION -f protobuf-shaded/pom.xml
popd