Skip to content

Commit e550731

Browse files
QilongZhangstraybirdzls
authored andcommitted
Upgrade version (sofastack#348)
1 parent e79c664 commit e550731

File tree

26 files changed

+67
-35
lines changed

26 files changed

+67
-35
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
SOFABoot 是蚂蚁金服开源的基于 Spring Boot 的研发框架,它在 Spring Boot 的基础上,提供了诸如 Readiness Check,类隔离,日志空间隔离等等能力。在增强了 Spring Boot 的同时,SOFABoot 提供了让用户可以在 Spring Boot 中非常方便地使用 SOFA 中间件的能力。
99

10-
## 3.0.0 SNAPSHOT ! 🎉🎉🎉
11-
为了方便社区同学能够基于 SOFABoot 使用 Spring Boot 2.0 进行开发,我们拉了 3.0.0-SNAPSHOT 快照分支,该版本是基于 Spring Boot 2.0.3.RELEASE
10+
## 3.x
11+
为了方便社区同学能够基于 SOFABoot 使用 Spring Boot 2.0 进行开发,SOFABoot 提供了 3.x 版本系列,欢迎使用
1212

1313
## 一、背景
1414

change_version.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
shopt -s expand_aliases
3+
if [ ! -n "$1" ] ;then
4+
echo "Please enter a version"
5+
exit 1
6+
else
7+
echo "The updated version is $1 !"
8+
fi
9+
10+
currentVersion=`sed -n '/<project /,/<packaging/p' pom.xml | grep version | cut -d '>' -f2 | cut -d '<' -f1`
11+
echo "The current version is $currentVersion"
12+
13+
if [ `uname` == "Darwin" ] ;then
14+
echo "This is OS X"
15+
alias sed='sed -i ""'
16+
else
17+
echo "This is Linux"
18+
alias sed='sed -i'
19+
fi
20+
21+
echo "Change version in root pom.xml ===>"
22+
sed "/<project /,/<packaging/ s/<version>.*<\/version>/<version>$1<\/version>/" pom.xml
23+
24+
echo "Change version in subproject pom ===>"
25+
for filename in `find . -name "pom.xml" -mindepth 2`;do
26+
echo "Deal with $filename"
27+
sed "/<parent>/,/<\/parent>/ s/<version>.*<\/version>/<version>$1<\/version>/" $filename
28+
done
29+

healthcheck-sofa-boot-starter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>com.alipay.sofa</groupId>
2424
<artifactId>sofa-boot-runtime</artifactId>
25-
<version>2.6.0-SNAPSHOT</version>
25+
<version>2.6.0</version>
2626
<relativePath>../pom.xml</relativePath>
2727
</parent>
2828

infra-sofa-boot-starter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>com.alipay.sofa</groupId>
2424
<artifactId>sofa-boot-runtime</artifactId>
25-
<version>2.6.0-SNAPSHOT</version>
25+
<version>2.6.0</version>
2626
<relativePath>../pom.xml</relativePath>
2727
</parent>
2828
<modelVersion>4.0.0</modelVersion>

isle-sofa-boot-starter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.alipay.sofa</groupId>
77
<artifactId>sofa-boot-runtime</artifactId>
8-
<version>2.6.0-SNAPSHOT</version>
8+
<version>2.6.0</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<parent>
2424
<groupId>com.alipay.sofa</groupId>
2525
<artifactId>sofaboot-dependencies</artifactId>
26-
<version>2.6.0-SNAPSHOT</version>
26+
<version>2.6.0</version>
2727
</parent>
2828

2929
<modelVersion>4.0.0</modelVersion>

runtime-sofa-boot-plugin/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>com.alipay.sofa</groupId>
2424
<artifactId>sofa-boot-runtime</artifactId>
25-
<version>2.6.0-SNAPSHOT</version>
25+
<version>2.6.0</version>
2626
<relativePath>../pom.xml</relativePath>
2727
</parent>
2828
<modelVersion>4.0.0</modelVersion>
@@ -37,7 +37,7 @@
3737
<dependency>
3838
<groupId>com.alipay.sofa</groupId>
3939
<artifactId>runtime-sofa-boot-starter</artifactId>
40-
<version>2.6.0-SNAPSHOT</version>
40+
<version>2.6.0</version>
4141
</dependency>
4242
<dependency>
4343
<groupId>aopalliance</groupId>
@@ -120,4 +120,4 @@
120120
</plugin>
121121
</plugins>
122122
</build>
123-
</project>
123+
</project>

runtime-sofa-boot-starter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>com.alipay.sofa</groupId>
2424
<artifactId>sofa-boot-runtime</artifactId>
25-
<version>2.6.0-SNAPSHOT</version>
25+
<version>2.6.0</version>
2626
<relativePath>../pom.xml</relativePath>
2727
</parent>
2828
<modelVersion>4.0.0</modelVersion>

sofaboot-samples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>com.alipay.sofa</groupId>
2424
<artifactId>sofa-boot-runtime</artifactId>
25-
<version>2.6.0-SNAPSHOT</version>
25+
<version>2.6.0</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828

sofaboot-samples/sofaboot-sample-standard/app/biz/service-impl/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>com.alipay.sofa</groupId>
55
<artifactId>sofaboot-sample-standard-parent</artifactId>
6-
<version>1.0.0-SNAPSHOT</version>
6+
<version>2.6.0</version>
77
<relativePath>../../../pom.xml</relativePath>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>

0 commit comments

Comments
 (0)