Skip to content

Commit 2fdbd96

Browse files
committed
使用阿里云仓库地址
1 parent 94fd3e9 commit 2fdbd96

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

build.gradle

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
buildscript {
33
apply from: 'config.gradle'
44
repositories {
5+
maven {
6+
url 'https://maven.aliyun.com/repository/public'
7+
name '代替 jcenter()及mavenCentral()'
8+
}
9+
maven {
10+
url 'https://maven.aliyun.com/repository/jcenter'
11+
name '代替 jcenter()'
12+
}
13+
maven {
14+
url 'https://maven.aliyun.com/repository/google'
15+
name '代替 google()'
16+
}
517
if (bus.isDebug) {
618
maven() {
719
url uri(new File(project.rootDir, "maven"))
@@ -20,6 +32,18 @@ buildscript {
2032

2133
allprojects {
2234
repositories {
35+
maven {
36+
url 'https://maven.aliyun.com/repository/public'
37+
name '代替 jcenter()及mavenCentral()'
38+
}
39+
maven {
40+
url 'https://maven.aliyun.com/repository/jcenter'
41+
name '代替 jcenter()'
42+
}
43+
maven {
44+
url 'https://maven.aliyun.com/repository/google'
45+
name '代替 google()'
46+
}
2347
google()
2448
jcenter()
2549
}

0 commit comments

Comments
 (0)