-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
76 lines (66 loc) · 2.52 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
66
67
68
69
70
71
72
73
74
75
76
// 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.71'
// ext.kotlin_version = '1.3.70'
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/'}
maven { url'https://maven.aliyun.com/repository/public/' }
maven { url'https://maven.aliyun.com/repository/google/' }
maven { url'https://maven.aliyun.com/repository/jcenter/' }
maven { url'https://maven.aliyun.com/repository/central/' }
//解决jitpack.io部分库无法下载问题:增加www
maven { url 'https://www.jitpack.io' }
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0'
classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.1'
//greendao
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
// google()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/'}
maven { url'https://maven.aliyun.com/repository/public/' }
maven { url'https://maven.aliyun.com/repository/google/' }
maven { url'https://maven.aliyun.com/repository/jcenter/' }
maven { url'https://maven.aliyun.com/repository/central/' }
//解决jitpack.io部分库无法下载问题:增加www
// maven { url 'https://jitpack.io' }
maven { url 'https://www.jitpack.io' }
mavenCentral()
}
ext {
buildToolsVersion = "24.0.2"
minSdkVersion = 20
targetSdkVersion = 28
compileSdkVersion = 28
appcompatVersion= '1.1.0'
materialVersion='1.1.0-alpha10'
annotationVersion='1.1.0-beta01'
butterknifeVersion = '10.1.0'
constraintLayoutVersion = "1.1.3"
mmkvVersion = '1.0.23'
}
}
configurations.all {
resolutionStrategy {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'android.arch.lifecycle:runtime') {
details.useVersion "1.1.1"
}
if (details.requested.group == 'android.arch.lifecycle:viewmodel') {
details.useVersion "1.1.1"
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}