-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
64 lines (53 loc) · 1.66 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
//apply plugin: 'calces.appconfig'
buildscript {
repositories {
google()
jcenter()
// peidou的maven库
maven { url "http://47.99.209.73:8011/repository/maven-releases/" }
maven { url "https://jitpack.io" }
maven {
url "https://maven.google.com"
}
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
// maven {
// url 'file:///C:/Users/mayn/Documents/localMaven/'
// }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
// classpath 'com.xiaokun.plugin:publishApp:1.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
apply from: "config.gradle"
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
maven {
url "https://maven.google.com"
}
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven {
url 'file:///C:/Users/mayn/Documents/localMaven'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
//解决各个libray的android版本引用不一致问题
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex')) {
details.useVersion '27.1.1'
}
}
}
}