spring源码的gradle配置

主要是修改init.gradle文件配置

全部内容如下

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
allprojects {
repositories {
maven { url "https://maven.aliyun.com/repository/public" }
//有一个依赖,public中没有,所以需要spring
maven { url "https://maven.aliyun.com/repository/spring" }
maven {
name "ALIYUN_CENTRAL_URL" // name 可以不需要
url 'https://maven.aliyun.com/nexus/content/repositories/central'
}
maven {
name "ALIYUN_JCENTER_URL"
url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'
}
maven {
name "ALIYUN_GOOGLE_URL"
url 'https://maven.aliyun.com/nexus/content/repositories/google'
}
}
}