forked from KunMinX/Jetpack-MVVM-Best-Practice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
39 lines (35 loc) · 1 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
buildscript {
ext {
appTargetSdk = 31
appMinSdk = 23
appVersionCode = 30204
appVersionName = "3.2.4"
lifecycleVersion = "2.4.1"
navigationVersion = "2.4.1"
retrofitVersion = "2.9.0"
okHttpVersion = "4.9.3"
}
repositories {
google()
gradlePluginPortal()
maven { url 'https://jitpack.io' }
//默认使用 gradlePluginPortal,以便在依赖库有紧急更新时能第一时间获取
//如对日常的拉取速度有追求,可考虑使用以下远程仓库(是对 central 的国内同步仓库,存在 1 天左右的时差)
//maven { url "https://maven.aliyun.com/repository/public" }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
rootProject.allprojects {
delete(it.buildDir)
}
}