-
-
Notifications
You must be signed in to change notification settings - Fork 230
Expand file tree
/
Copy pathbuild.gradle
More file actions
executable file
·46 lines (39 loc) · 1.5 KB
/
build.gradle
File metadata and controls
executable file
·46 lines (39 loc) · 1.5 KB
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/discovery' }
maven { url 'https://maven.aliyun.com/repository/android' }
}
dependencies {
classpath 'com.android.tools.build:gradle:8.7.2'
// classpath 'com.novoda:bintray-release:0.9.1' // 暂时注释,该插件与Gradle 8.x不兼容
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/discovery' }
maven { url 'https://maven.aliyun.com/repository/android' }
}
// 全局依赖管理,解决Kotlin版本冲突
configurations.all {
resolutionStrategy {
force 'org.jetbrains.kotlin:kotlin-stdlib:1.8.22'
force 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22'
force 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22'
force 'org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}