From 4fd04f13f5acdb84142e83ae527240afe244ac4b Mon Sep 17 00:00:00 2001 From: Yinghao Lin Date: Thu, 9 Jan 2025 16:22:45 +0800 Subject: [PATCH] Add version update script --- dev/update-versions.sh | 35 +++++++++++++++++++++++++++++++++++ pom.xml | 5 +++++ 2 files changed, 40 insertions(+) create mode 100755 dev/update-versions.sh diff --git a/dev/update-versions.sh b/dev/update-versions.sh new file mode 100755 index 0000000000..7010c39bbd --- /dev/null +++ b/dev/update-versions.sh @@ -0,0 +1,35 @@ +#!/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. +# + +############# New version ############# +NEW_VERSION=$1 +####################################### + +if [[ -z "${NEW_VERSION}" ]]; then + echo "No version provided" + echo "Usage: ./dev/update-versions.sh " + exit 1; +else + echo "NEW_VERSION set: ${NEW_VERSION}" +fi + +mvn versions:set -DnewVersion=${NEW_VERSION} \ + -DprocessAllModules \ + -DgenerateBackupPoms=false diff --git a/pom.xml b/pom.xml index 5b22962209..e71bb8bd51 100644 --- a/pom.xml +++ b/pom.xml @@ -564,6 +564,11 @@ + + org.codehaus.mojo + versions-maven-plugin + 2.18.0 +