forked from KunMinX/Jetpack-MVVM-Best-Practice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
32 lines (27 loc) · 989 Bytes
/
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
//默认使用 jcenter,以便在依赖库有紧急更新时能第一时间获取
//如对日常的拉取速度有追求,可考虑使用以下远程仓库(是对 jcenter 的国内同步仓库,存在 1 天左右的时差)
//maven { url "https://maven.aliyun.com/repository/public" }
}
dependencies {
//考虑到 Android Studio 4.1 存在各种问题,目前暂且将 gradle tool 版本停留在 4.0.2,以兼容 Android Studio 4.0
classpath 'com.android.tools.build:gradle:4.0.2'
}
}
allprojects {
repositories {
google()
jcenter()
//maven { url "https://maven.aliyun.com/repository/public" }
flatDir { dirs 'libs' }
}
}
task clean(type: Delete) {
rootProject.allprojects {
delete(it.buildDir)
}
}