-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
30 lines (26 loc) · 917 Bytes
/
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
ktlint
}
subprojects project@{
applyKtlint
tasks.withType<KotlinCompile>().configureEach {
with(kotlinOptions) {
jvmTarget = JavaVersion.VERSION_17.toString()
freeCompilerArgs += "-Xuse-experimental=" +
"kotlin.Experimental," +
"kotlinx.coroutines.ExperimentalCoroutinesApi," +
"kotlinx.coroutines.InternalCoroutinesApi," +
"kotlinx.coroutines.ObsoleteCoroutinesApi," +
"kotlinx.coroutines.FlowPreview"
freeCompilerArgs += "-Xopt-in=kotlin.ExperimentalStdlibApi"
freeCompilerArgs += "-Xcontext-receivers"
}
}
tasks.register("runTests") {
finalizedBy("${[email protected]}:testDebugUnitTest")
}
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}