Skip to content
Permalink
Browse files
Add bump snapshot script and bump snapshort
  • Loading branch information
junkaixue committed Apr 21, 2022
1 parent 8e3e681 commit cd23c2f0496005f0e9a5244f93bdd4cc3fa6aeba
Show file tree
Hide file tree
Showing 33 changed files with 97 additions and 45 deletions.
@@ -0,0 +1,52 @@
#!/bin/sh

#
# 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.
#


echo There are $# arguments to $0: $*
if [ "$#" -eq 2 ]; then
version=$1
new_version=$2
else
echo "ERROR: Need oldVersion and newVersion two arguments"
exit 0
fi


# Move Ivy
mv helix-admin-webapp/helix-admin-webapp-$version-SNAPSHOT.ivy helix-admin-webapp/helix-admin-webapp-$new_version-SNAPSHOT.ivy
mv helix-agent/helix-agent-$version-SNAPSHOT.ivy helix-agent/helix-agent-$new_version-SNAPSHOT.ivy
mv helix-common/helix-common-$version-SNAPSHOT.ivy helix-common/helix-common-$new_version-SNAPSHOT.ivy
mv helix-core/helix-core-$version-SNAPSHOT.ivy helix-core/helix-core-$new_version-SNAPSHOT.ivy
mv helix-lock/helix-lock-$version-SNAPSHOT.ivy helix-lock/helix-lock-$new_version-SNAPSHOT.ivy
mv helix-rest/helix-rest-$version-SNAPSHOT.ivy helix-rest/helix-rest-$new_version-SNAPSHOT.ivy
mv metadata-store-directory-common/metadata-store-directory-common-$version-SNAPSHOT.ivy metadata-store-directory-common/metadata-store-directory-common-$new_version-SNAPSHOT.ivy
mv metrics-common/metrics-common-$version-SNAPSHOT.ivy metrics-common/metrics-common-$new_version-SNAPSHOT.ivy
mv zookeeper-api/zookeeper-api-$version-SNAPSHOT.ivy zookeeper-api/zookeeper-api-$new_version-SNAPSHOT.ivy
mv helix-view-aggregator/helix-view-aggregator-$version-SNAPSHOT.ivy helix-view-aggregator/helix-view-aggregator-$new_version-SNAPSHOT.ivy


find . -type f -name '*.ivy' -exec sed -i "s/$version/$new_version/g" {} \;
find . -type f -name 'pom.xml' -exec sed -i "s/$version/$new_version/g" {} \;



echo Bump up is DONE! Please double check and commit!
#END
@@ -20,7 +20,7 @@ under the License.
<ivy-module version="1.0">
<info organisation="org.apache.helix"
module="helix-admin-webapp"
revision="1.0.3-SNAPSHOT"
revision="1.0.4-SNAPSHOT"
status="integration"
publication="20120315141623"
/>
@@ -43,7 +43,7 @@ under the License.
<dependency org="org.apache.logging.log4j" name="log4j-slf4j-impl" rev="2.17.1" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)">
<artifact name="log4j-slf4j-impl" ext="jar"/>
</dependency>
<dependency org="org.apache.helix" name="helix-core" rev="1.0.3-SNAPSHOT" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="org.apache.helix" name="helix-core" rev="1.0.4-SNAPSHOT" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="org.restlet.jse" name="org.restlet" rev="2.2.1" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="com.fasterxml.jackson.core" name="jackson-databind" rev="2.12.6.1" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="com.fasterxml.jackson.core" name="jackson-core" rev="2.12.6" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
@@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.helix</groupId>
<artifactId>helix</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

@@ -21,7 +21,7 @@ under the License.
<ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven">
<info organisation="org.apache.helix"
module="helix-agent"
revision="1.0.3-SNAPSHOT"
revision="1.0.4-SNAPSHOT"
status="integration"
publication="20141020152553"
>
@@ -31,7 +31,7 @@ under the License.
<m:properties__osgi.export>org.apache.helix.agent*;version=&quot;${project.version};-noimport:=true</m:properties__osgi.export>
<m:properties__svnImpl>svn</m:properties__svnImpl>
<m:properties__scmSkipDeletedFiles>false</m:properties__scmSkipDeletedFiles>
<m:properties__currentRelease>1.0.3-SNAPSHOT</m:properties__currentRelease>
<m:properties__currentRelease>1.0.4-SNAPSHOT</m:properties__currentRelease>
<m:properties__osgi.import>
org.apache.helix*,
org.apache.commons.cli;version=&quot;[1.2,2)&quot;,
@@ -46,7 +46,7 @@ under the License.
<m:properties__distMgmtSnapshotsUrl>https://repository.apache.org/content/repositories/snapshots</m:properties__distMgmtSnapshotsUrl>
<m:properties__SKIP_INTEGRATION_TESTS>true</m:properties__SKIP_INTEGRATION_TESTS>
<m:properties__gpg.useagent>true</m:properties__gpg.useagent>
<m:dependency.management__org.apache.helix__helix-core__version>1.0.3-SNAPSHOT</m:dependency.management__org.apache.helix__helix-core__version>
<m:dependency.management__org.apache.helix__helix-core__version>1.0.4-SNAPSHOT</m:dependency.management__org.apache.helix__helix-core__version>
<m:properties__project.build.sourceEncoding>UTF-8</m:properties__project.build.sourceEncoding>
<m:dependency.management__org.testng__testng__version>6.0.1</m:dependency.management__org.testng__testng__version>
<m:properties__helix.release.preparationGoals>clean install</m:properties__helix.release.preparationGoals>
@@ -77,12 +77,12 @@ under the License.
<artifact name="helix-agent" type="source" ext="jar" conf="sources" m:classifier="sources"/>
</publications>
<dependencies>
<dependency org="org.apache.helix" name="helix-core" rev="1.0.3-SNAPSHOT" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="org.apache.helix" name="helix-core" rev="1.0.4-SNAPSHOT" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="org.restlet.jse" name="org.restlet" rev="2.2.1" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="org.testng" name="testng" rev="6.0.1" force="true" conf="test->runtime(*),master(*)">
<exclude org="junit" module="junit" name="*" type="*" ext="*" conf="" matcher="exact"/>
</dependency>
<dependency org="org.apache.helix" name="helix-core" rev="1.0.3-SNAPSHOT" force="true" conf="test->runtime(*),master(*)">
<dependency org="org.apache.helix" name="helix-core" rev="1.0.4-SNAPSHOT" force="true" conf="test->runtime(*),master(*)">
<artifact name="helix-core" type="test-jar" ext="jar" conf="" m:classifier="tests"/>
</dependency>
<dependency org="org.slf4j" name="slf4j-api" rev="1.7.32" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)">
@@ -92,7 +92,7 @@ under the License.
<artifact name="log4j-slf4j-impl" ext="jar"/>
</dependency>
<override org="org.mockito" module="mockito-all" matcher="exact" rev="1.9.5"/>
<override org="org.apache.helix" module="helix-core" matcher="exact" rev="1.0.3-SNAPSHOT"/>
<override org="org.apache.helix" module="helix-core" matcher="exact" rev="1.0.4-SNAPSHOT"/>
<override org="org.restlet.jse" module="org.restlet" matcher="exact" rev="2.2.1"/>
<override org="junit" module="junit" matcher="exact" rev="4.11"/>
<override org="org.testng" module="testng" matcher="exact" rev="6.0.1"/>
@@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.helix</groupId>
<artifactId>helix</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>
<artifactId>helix-agent</artifactId>
<packaging>bundle</packaging>
@@ -20,7 +20,7 @@ under the License.
<ivy-module version="1.0">
<info organisation="org.apache.helix"
module="helix-common"
revision="1.0.3-SNAPSHOT"
revision="1.0.4-SNAPSHOT"
status="integration"
publication="20170128141623"
/>
@@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.helix</groupId>
<artifactId>helix</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

@@ -20,7 +20,7 @@ under the License.
<ivy-module version="1.0" xmlns:m="http://ant.apache.org/ivy/maven">
<info organisation="org.apache.helix"
module="helix-core"
revision="1.0.3-SNAPSHOT"
revision="1.0.4-SNAPSHOT"
status="release"
publication="2011111505113547"
>
@@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.helix</groupId>
<artifactId>helix</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

@@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.helix</groupId>
<artifactId>helix</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

@@ -20,7 +20,7 @@ under the License.
<ivy-module version="1.0">
<info organisation="org.apache.helix"
module="helix-lock"
revision="1.0.3-SNAPSHOT"
revision="1.0.4-SNAPSHOT"
status="integration"
publication="20200114115923"
/>
@@ -43,6 +43,6 @@ under the License.
<dependency org="org.apache.logging.log4j" name="log4j-slf4j-impl" rev="2.17.1" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)">
<artifact name="log4j-slf4j-impl" ext="jar"/>
</dependency>
<dependency org="org.apache.helix" name="helix-core" rev="1.0.3-SNAPSHOT" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="org.apache.helix" name="helix-core" rev="1.0.4-SNAPSHOT" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
</dependencies>
</ivy-module>
@@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.helix</groupId>
<artifactId>helix</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

@@ -20,7 +20,7 @@ under the License.
<ivy-module version="1.0">
<info organisation="org.apache.helix"
module="helix-rest"
revision="1.0.3-SNAPSHOT"
revision="1.0.4-SNAPSHOT"
status="integration"
publication="20170128141623"
/>
@@ -46,7 +46,7 @@ under the License.
<dependency org="org.yaml" name="snakeyaml" rev="1.30">
<artifact name="snakeyaml" m:classifier="sources" ext="jar"/>
</dependency>
<dependency org="org.apache.helix" name="helix-core" rev="1.0.3-SNAPSHOT" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="org.apache.helix" name="helix-core" rev="1.0.4-SNAPSHOT" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="com.fasterxml.jackson.core" name="jackson-databind" rev="2.12.6.1" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="com.fasterxml.jackson.core" name="jackson-core" rev="2.12.6" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="commons-cli" name="commons-cli" rev="1.2" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
@@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.helix</groupId>
<artifactId>helix</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

@@ -48,7 +48,7 @@
<dependency>
<groupId>org.apache.helix</groupId>
<artifactId>metadata-store-directory-common</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
@@ -18,7 +18,7 @@ under the License.
<ivy-module version="1.0">
<info organisation="org.apache.helix"
module="helix-view-aggregator"
revision="1.0.3-SNAPSHOT"
revision="1.0.4-SNAPSHOT"
status="integration"
publication="20170128141623"
/>
@@ -44,7 +44,7 @@ under the License.
<--dependency org="org.slf4j" name="slf4j-log4j12" rev="1.7.14" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)">
<artifact name="slf4j-log4j12" ext="jar"/>
</dependency-->
<dependency org="org.apache.helix" name="helix-core" rev="1.0.3-SNAPSHOT" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="org.apache.helix" name="helix-core" rev="1.0.4-SNAPSHOT" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="org.codehaus.jackson" name="jackson-core-asl" rev="1.8.5" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="org.codehaus.jackson" name="jackson-mapper-asl" rev="1.8.5" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="commons-cli" name="commons-cli" rev="1.2" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
@@ -21,7 +21,7 @@ under the License.
<parent>
<groupId>org.apache.helix</groupId>
<artifactId>helix</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

@@ -20,7 +20,7 @@ under the License.
<ivy-module version="1.0">
<info organisation="org.apache.helix"
module="metadata-store-directory-common"
revision="1.0.3-SNAPSHOT"
revision="1.0.4-SNAPSHOT"
status="integration"
publication="20170128141623"
/>
@@ -46,7 +46,7 @@ under the License.
<dependency org="org.yaml" name="snakeyaml" rev="1.30">
<artifact name="snakeyaml" m:classifier="sources" ext="jar"/>
</dependency>
<dependency org="org.apache.helix" name="helix-core" rev="1.0.3-SNAPSHOT" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="org.apache.helix" name="helix-core" rev="1.0.4-SNAPSHOT" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="com.fasterxml.jackson.core" name="jackson-databind" rev="2.12.6.1" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="commons-cli" name="commons-cli" rev="1.2" force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/>
<dependency org="commons-io" name="commons-io" rev="2.11.0" conf="compile->compile(default);runtime->runtime(default);default->default"/>
@@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.helix</groupId>
<artifactId>helix</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

@@ -20,7 +20,7 @@ under the License.
<ivy-module version="1.0">
<info organisation="org.apache.helix"
module="metrics-common"
revision="1.0.3-SNAPSHOT"
revision="1.0.4-SNAPSHOT"
status="integration"
publication="20170128141623"
/>
@@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.helix</groupId>
<artifactId>helix</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

@@ -29,7 +29,7 @@

<groupId>org.apache.helix</groupId>
<artifactId>helix</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Apache Helix</name>

@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.helix.recipes</groupId>
<artifactId>recipes</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>

<artifactId>distributed-lock-manager</artifactId>
@@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.helix</groupId>
<artifactId>helix</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>
<groupId>org.apache.helix.recipes</groupId>
<artifactId>recipes</artifactId>
@@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.helix.recipes</groupId>
<artifactId>recipes</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>

<artifactId>rabbitmq-consumer-group</artifactId>
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.helix.recipes</groupId>
<artifactId>recipes</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>

<artifactId>rsync-replicated-file-system</artifactId>
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.helix.recipes</groupId>
<artifactId>recipes</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>

<artifactId>service-discovery</artifactId>
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.helix.recipes</groupId>
<artifactId>recipes</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>

<artifactId>task-execution</artifactId>
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.helix</groupId>
<artifactId>website</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>

<artifactId>0.9.9-docs</artifactId>
@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.helix</groupId>
<artifactId>website</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
</parent>

<artifactId>1.0.2-docs</artifactId>

0 comments on commit cd23c2f

Please sign in to comment.