-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
38 lines (34 loc) · 904 Bytes
/
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
plugins {
id("java-library")
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.android.lint) // dependency of commons-android
}
java {
sourceCompatibility = rootProject.javaVersion
targetCompatibility = rootProject.javaVersion
toolchain.languageVersion = JavaLanguageVersion.of(rootProject.javaToolchainVersion.toString())
}
compileKotlin {
kotlinOptions {
jvmTarget = rootProject.javaVersion
allWarningsAsErrors = true
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = rootProject.javaVersion
allWarningsAsErrors = true
}
}
dependencies {
implementation(platform(libs.kotlin.bom))
implementation(platform(libs.kotlinx.coroutines.bom))
implementation(libs.bundles.kotlin)
testImplementation(libs.bundles.test.unit)
}
test {
useJUnit()
testLogging {
events("passed", "skipped", "failed")
}
}