Fix set-project-version.sh
*Motivation*
The script doesn't update the parent version for protobuf-shaded module
*Modifications*
use `versions:update-parent` to update parent version
@@ -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
