Skip to content

Commit

Permalink
Prepare to release v5.4.0. (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjboy authored May 31, 2018
1 parent 43f1430 commit 37b7ce5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<hessian.version>3.3.0</hessian.version>
<resteasy.version>3.0.12.Final</resteasy.version>
<bolt.version>1.4.1</bolt.version>
<tracer.version>2.1.0</tracer.version>
<tracer.version>2.1.1</tracer.version>
<lookout.version>1.4.0</lookout.version>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<bolt.version>1.4.1</bolt.version>
<sofa.common.tools.version>1.0.12</sofa.common.tools.version>
<lookout.version>1.1.0</lookout.version>
<tracer.version>2.1.0</tracer.version>
<tracer.version>2.1.1</tracer.version>
<lookout.version>1.4.0</lookout.version>
<!-- Build args -->
<module.install.skip>true</module.install.skip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ public final class Version {
/**
* 当前Build版本,每次发布修改
*/
public static final String BUILD_VERSION = "5.4.0_20180427231325";
public static final String BUILD_VERSION = "5.4.0_20180530235405";
}
2 changes: 1 addition & 1 deletion extension-impl/metrics-lookout/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
2 changes: 1 addition & 1 deletion extension-impl/remoting-http/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
12 changes: 7 additions & 5 deletions tools/change_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ if [ -f $version_java_file ]; then
echo " WARN: You need to modify \"core/api/src/main/java/com/alipay/sofa/rpc/common/Version.java\" "
echo "=================="

echo "VERSION is $1"
sed -i "" "s/\(VERSION[ ]*=[ ]*\"\).*$/\1$1\";/g" $version_java_file
version_str=$(echo $1 | \sed -e "s/[^0-9\.]//g")
echo "VERSION is ${version_str}"
sed "s/\(VERSION[ ]*=[ ]*\"\).*$/\1${version_str}\";/g" $version_java_file

# number and dot -> padding bugfix version -> padding minor version -> padding major version -> only leave number
rpc_version=$(echo $1 | \sed -e "s/[^0-9\.]//g" \
Expand All @@ -62,9 +63,10 @@ if [ -f $version_java_file ]; then
-e "s/^\([0-9]\)\./\1\./g" \
-e "s/[^0-9]//g")
echo "RPC_VERSION is ${rpc_version}"
sed -i "" "s/\(RPC_VERSION[ ]*=[ ]*\).*$/\1${rpc_version};/g" $version_java_file
sed "s/\(RPC_VERSION[ ]*=[ ]*\).*$/\1${rpc_version};/g" $version_java_file

date_format=$(date +"%Y%m%d%H%M%S")
echo "BUILD_VERSION is $1_${date_format}"
sed -i "" "s/\(BUILD_VERSION[ ]*=[ ]*\"\).*$/\1$1_${date_format}\";/g" $version_java_file
build_version=${version_str}_${date_format}
echo "BUILD_VERSION is ${build_version}"
sed "s/\(BUILD_VERSION[ ]*=[ ]*\"\).*$/\1${build_version}\";/g" $version_java_file
fi

0 comments on commit 37b7ce5

Please sign in to comment.