You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2018/10/11 22:17:58 UTC
[pulsar] branch master updated: Added script to change the project
version in 1 command (#2772)
This is an automated email from the ASF dual-hosted git repository.
mmerli 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 60a6a7b Added script to change the project version in 1 command (#2772)
60a6a7b is described below
commit 60a6a7b9da9e395f8938a609d07e666735c93526
Author: Matteo Merli <mm...@apache.org>
AuthorDate: Thu Oct 11 15:17:53 2018 -0700
Added script to change the project version in 1 command (#2772)
---
protobuf-shaded/pom.xml | 1 +
pulsar-sql/presto-distribution/pom.xml | 2 +-
src/set-project-version.sh | 38 ++++++++++++++++++++++++++++++++++
3 files changed, 40 insertions(+), 1 deletion(-)
diff --git a/protobuf-shaded/pom.xml b/protobuf-shaded/pom.xml
index d235146..042538b 100644
--- a/protobuf-shaded/pom.xml
+++ b/protobuf-shaded/pom.xml
@@ -32,6 +32,7 @@
<artifactId>protobuf-shaded</artifactId>
<name>Apache Pulsar :: Protobuf shaded</name>
+ <version>2.3.0-SNAPSHOT</version>
<dependencies>
<dependency>
diff --git a/pulsar-sql/presto-distribution/pom.xml b/pulsar-sql/presto-distribution/pom.xml
index 5985b6c..6e8b3b5 100644
--- a/pulsar-sql/presto-distribution/pom.xml
+++ b/pulsar-sql/presto-distribution/pom.xml
@@ -31,7 +31,7 @@
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-presto-distribution</artifactId>
<name>Pulsar SQL :: Pulsar Presto Distribution</name>
- <version>2.2.0-SNAPSHOT</version>
+ <version>2.3.0-SNAPSHOT</version>
<properties>
<presto.version>0.206</presto.version>
diff --git a/src/set-project-version.sh b/src/set-project-version.sh
new file mode 100755
index 0000000..a1ff32a
--- /dev/null
+++ b/src/set-project-version.sh
@@ -0,0 +1,38 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+set -e
+
+if [ $# -eq 0 ]; then
+ echo "Required argument with new project version"
+ exit 1
+fi
+
+NEW_VERSION=$1
+
+# Go to top level project directory
+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
+mvn versions:set -DnewVersion=$NEW_VERSION -f protobuf-shaded/pom.xml
+
+popd