-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
43 lines (37 loc) · 1.18 KB
/
build.gradle
File metadata and controls
43 lines (37 loc) · 1.18 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
id("java-library")
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlinx.serialization)
alias(libs.plugins.android.lint) // dependency of commons-android
}
def envCI = System.getenv("CI")
def isCI = envCI != null && envCI != ""
java {
sourceCompatibility = rootProject.javaVersion
targetCompatibility = rootProject.javaVersion
toolchain.languageVersion = JavaLanguageVersion.of(rootProject.javaToolchainVersion.toString())
}
kotlin {
compilerOptions {
jvmTarget = JvmTarget.fromTarget(rootProject.javaVersion.toString())
// allWarningsAsErrors = true // replaced by "DeprecatedCall" in lint
}
}
dependencies {
implementation(platform(libs.kotlin.bom))
implementation(platform(libs.kotlinx.coroutines.bom))
implementation(platform(libs.kotlinx.serialization.bom))
implementation(libs.bundles.kotlin)
testImplementation(libs.bundles.test.unit)
}
test {
useJUnit()
testLogging {
if (isCI) {
events("started", "passed", "skipped", "failed", "standard_out", "standard_error")
} else {
events("failed")
}
}
}