-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
42 lines (37 loc) · 1.32 KB
/
Copy pathbuild.gradle
File metadata and controls
42 lines (37 loc) · 1.32 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
buildscript {
ext.kotlin_version = '1.7.10'
repositories {
// Mirrors (kept after primary repos to avoid staleness)
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
maven { url "https://maven.aliyun.com/repository/google" }
maven { url "https://maven.aliyun.com/repository/public" }
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.2.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
// Mirrors (kept after primary repos to avoid staleness)
maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://maven.aliyun.com/repository/google"}
maven { url "https://maven.aliyun.com/repository/central" }
maven { url "https://jitpack.io" }
maven { url "https://s01.oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://repo1.maven.org/maven2/" }
google()
mavenCentral()
}
// Force all modules to use Gson 2.8.9 to fix Java module system compatibility
configurations.all {
resolutionStrategy {
force 'com.google.code.gson:gson:2.8.9'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}