forked from TKaxv-7S/Sesame-TK
-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathbuild.gradle
45 lines (42 loc) · 1.64 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
buildscript {
ext.kotlin_version = '1.9.10'
repositories {
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/google/' }
maven { url 'https://maven.aliyun.com/repository/jcenter/' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
mavenLocal()
mavenCentral()
google()
}
dependencies {
classpath "com.android.tools.build:gradle:8.5.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
allprojects {
repositories {
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/google/' }
maven { url 'https://maven.aliyun.com/repository/jcenter/' }
maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
mavenLocal()
mavenCentral()
google()
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile).tap {
configureEach {
// -Xlint:unchecked 日志打印'未经检查或不安全的操作'的详细信息
// -Xlint:deprecation 日志打印`输入文件使用或覆盖了已过时的 API`的详细信息
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
}
tasks.register('clean', Delete) {
delete project.layout.buildDirectory
}