forked from diyaps/AndroidAPS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
61 lines (52 loc) · 1.98 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
maven("https://mirrors.cloud.tencent.com/nexus/repository/google")
maven("https://mirrors.cloud.tencent.com/nexus/repository/maven-public/")
}
dependencies {
classpath("com.android.tools.build:gradle:8.2.1")
classpath("com.google.gms:google-services:4.4.0")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.9")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath(kotlin("gradle-plugin", version = Libs.Kotlin.kotlin))
classpath(kotlin("allopen", version = Libs.Kotlin.kotlin))
classpath(kotlin("serialization", version = Libs.Kotlin.kotlin))
}
}
plugins {
id("org.jlleitschuh.gradle.ktlint") version "12.0.3"
}
allprojects {
repositories {
maven("https://mirrors.cloud.tencent.com/nexus/repository/google")
maven("https://mirrors.cloud.tencent.com/nexus/repository/maven-public/")
maven("https://jitpack.io")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf(
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=kotlin.ExperimentalUnsignedTypes",
"-Xjvm-default=all" //Support @JvmDefault
)
jvmTarget = "11"
}
}
gradle.projectsEvaluated {
tasks.withType<JavaCompile> {
val compilerArgs = options.compilerArgs
compilerArgs.add("-Xlint:deprecation")
compilerArgs.add("-Xlint:unchecked")
}
}
apply(plugin = "org.jlleitschuh.gradle.ktlint")
apply(plugin = "jacoco")
}
// Setup all reports aggregation
apply(from = "jacoco_aggregation.gradle.kts")
tasks.register<Delete>("clean").configure {
delete(rootProject.buildDir)
}