Spring IO platform
2017年12月11日大约 3 分钟
Spring IO platform
Spring IO is a cohesive, versioned platform for building modern applications.
It is a modular, enterprise-grade distribution that delivers a curated set of dependencies while keeping developers in full control
of deploying only the parts they need. Spring IO is 100% open source, lean, and modular.
作用
就是指定引入固定的 maven(gradle) parent,默认各个 jar 的版本都经过充分的测试,不会出现冲突。很人性化的设计。
原理
没使用过 gradle,主要谈下 maven 的理解。
就是定义了一堆父类 pom.xml
属性文件,规定了各种 jar 包的版本号。我们使用时只需要直接使用即可,无需指定版本号
Quick Start
新建 maven 项目 spring-io-learn
pom.xml
4.0.0
com.ryo
spring-io-learn
1.0-SNAPSHOT
io.spring.platform
platform-bom
Athens-SR6
pom
import
为了方便起见,我们测试下 Junit
添加一个不指定版本号的 Junit 依赖,如下:
junit
junit
test
运行命令
mvn clean install
会发现下载的 Junit 对应的 版本为 4.12
属性
直接点击 pom
可以看到对应的属性如下:
如果你想修改某个版本号,直接指定修改即可。
1.0.0.RELEASE
1.3.1.RELEASE
1.1.0.RELEASE
2.1.0.RELEASE
2.4.5.RELEASE
${spring-ws.version}
1.0
1.5.5
0.9.15
1.8.2
1.2.20
0.33
1.54
2.0b4
0.9.5.2
3.4.1
1.4.1
1.1.1
1.3.1
1.3.2
2.5
3.1
2.6
3.4
1.2
3.5
2.11.1
2.6.4
2.1.1
1.2.2
3.0.2
2.0.3
5.1.0
17.0
3.0
2.2.0
0.96.2-hadoop2
4.0.38
0.12.0
2.3.4.726
2.1.7
1.9.13
6.3.1
2.81
1.1.1
1.0
1.0.1
1.2
1.5
3.2
2.2.5
1.0
2.2
1
1.2
2.0.1
3.0.1
2.3.2-b02
1.2.1
1.0.1
2.0
1.1.0.Final
1.1
1.0
0.3.4
1.2
1.2.6
2.14.4
5.0.3
06052013
1.7.27
0.1.54
1.0
2.6.12
0.8.2.2
0.13.0
3.0.3
1.0
4.1
3.5.0.Final
1.2.17
2.2.12
2.7.5
3.3.1
3.4.4
6.6.16
2.4.2
2.3.2
2.0.1
0.12-neo4j-2.0.1
4.0.48.Final
2.4
2.6.11
0.9.6
1.1.1
0.12.1
3.14
2.6.1
1.4
2.2.3
3.6.6
1.0.0.RELEASE
1.0.0
2.9.0
1.6.1
${selenium.version}
4.1.9
1.1.2.6
1.3.0
0.7
1.1.14
2.2.14
1.3.28
1.2.5
6.9.10
1.3.5
3.0.7
1.0.6
1.3.5
1.3
3.1.1
1.4
0.7.21
6.0.2.17
4.4.1
1.6.19
2.1.9
2.6.0
2.2.2
1.6
1.2.5
1.4.10
3.0
2.2.0
贡献者
binbin.hou