-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
65 lines (59 loc) · 2.19 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// 这里的apply是为了让子模块使用
apply from: "config.gradle"
buildscript {
repositories {
google()
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
jcenter()
}
dependencies {
// root下build.gradle使用
apply from: "config.gradle"
classpath 'com.android.tools.build:gradle:3.2.0'
classpath 'cn.com.analysys:analysys-allgro-plugin:1.1.3'
}
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "27.1.1"
}
if (details.requested.group == 'androidx.core'
&& !details.requested.name.contains('androidx') ) {
details.useVersion "1.0.1"
}
}
}
}
}
allprojects {
repositories {
google()
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
// jcenter { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
jcenter()
maven { url 'http://mvn.gt.igexin.com/nexus/content/repositories/releases/' }
// jcenter { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
//maven { url 'http://mvn.gt.igexin.com/nexus/content/repositories/releases/' }
// maven {
// credentials {
// username '619b6ed6dd32cb644499de8d'
// password 'e69fi96c5UF8'
// }
// url 'https://packages.aliyun.com/maven/repository/2158329-release-3aNbLH/'
//}
}
}
//项目根目录build.gradle文件allprojects块添加:
//maven {
// credentials {
// username '619b6ed6dd32cb644499de8d'
// password 'e69fi96c5UF8'
// }
// url 'https://packages.aliyun.com/maven/repository/2158329-release-3aNbLH/'
//}