-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
61 lines (55 loc) · 1.8 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: "config.gradle"
buildscript {
ext.kotlin_version = '1.2.30'
repositories {
google()
jcenter()
//引入本地仓库
maven { url uri('./repo') }
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
classpath BUILD_VERSION_V32
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
//butterknife 8.8.1还不支持AS3.0
classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-SNAPSHOT'
//arouter 插件
classpath "com.alibaba:arouter-register:1.0.2"
if (isApplyComponentPlugin == 'true') {
classpath 'com.duiba:plugin_component:0.1.0'//引入自定义插件
}
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://jitpack.io" }
maven { url "https://clojars.org/repo/" }
maven { url uri('./repo') }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support') {
switch (details.requested.name) {
case 'multidex':
details.useVersion "1.0.3"
break
default:
break
}
}
}
}
}