forked from AnyLifeZLB/FaceVerificationSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
54 lines (41 loc) · 1.3 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
buildscript {
ext {
kotlin_version = "1.8.10"
java_version = JavaVersion.VERSION_1_8
}
//如果和你的项目中Kotlin 依赖不一致。 强制统一项目中的Kotlin 版本依赖
ConfigurationContainer container = project.configurations
container.all { Configuration conf ->
ResolutionStrategy rs = conf.resolutionStrategy
rs.eachDependency { details ->
def requested = details.requested
if (requested.group == "org.jetbrains.kotlin") {
//统一内部 kotlin 库的版本
details.useVersion("$kotlin_version")
}
}
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
mavenCentral()
google()
maven { url "https://jitpack.io" }
//多放一个国内的依赖托管镜像源,工程师可以根据公司的网络屏蔽情况自行替换
maven {
name "aliyunmaven"
url "https://maven.aliyun.com/nexus/content/groups/public/"
}
}
}
tasks.register('clean', Delete) {
delete rootProject.buildDir
}