-
Notifications
You must be signed in to change notification settings - Fork 127
/
Copy pathbuild.gradle
64 lines (48 loc) · 1.82 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
allprojects {
repositories {
mavenCentral()
google()
//多放几个国内的依赖托管镜像源,工程师可以根据公司的网络屏蔽情况自行替换
maven { url "https://s01.oss.sonatype.org/content/groups/public" }
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.7.20"
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:1.8.10"
}
// plugins {
// id 'com.android.application' version '7.4.2' apply false
// id 'com.android.library' version '7.4.2' apply false
//
// id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
// id("com.google.devtools.ksp") version "1.8.10-1.0.9" apply false
//
// id "com.vanniktech.maven.publish.base" version "0.25.3"
// }
// //如果和你的项目中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")
// }
// }
// }
}