-
Notifications
You must be signed in to change notification settings - Fork 102
/
build.gradle
53 lines (38 loc) · 1.39 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
allprojects {
repositories {
mavenCentral()
google()
//多放几个国内的依赖托管镜像源,工程师可以根据公司的网络屏蔽情况自行替换
maven {url "https://maven.aliyun.com/nexus/content/groups/public/"}
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url "https://jitpack.io" }
}
}
buildscript {
//FaceAILib 的java version 和Kotlin 配置
ext {
kotlin_version = "1.8.10"
java_version = JavaVersion.VERSION_11
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
// //如果和你的项目中Kotlin 依赖不一致。 强制统一项目中的Kotlin 版本依赖
// ConfigurationContainer container = project.configurations
// container.configureEach { Configuration conf ->
// ResolutionStrategy rs = conf.resolutionStrategy
// rs.eachDependency { details ->
// def requested = details.requested
// if (requested.group == "org.jetbrains.kotlin") {
// //统一内部 kotlin 库的版本
// details.useVersion("$kotlin_version")
// }
// }
// }
}