-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathbuild.gradle.kts
32 lines (29 loc) · 954 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
31
32
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories.applyDefault()
}
allprojects {
repositories.applyDefault()
configurations.all {
resolutionStrategy.eachDependency {
if (requested.group == "org.jetbrains.kotlin") {
useVersion(kotlinVersion)
}
}
}
}
subprojects {
applySpotless
tasks.withType<KotlinCompile>().configureEach {
with(kotlinOptions) {
jvmTarget = JavaVersion.VERSION_11.toString()
freeCompilerArgs += "-Xuse-experimental=" +
"kotlin.Experimental," +
"kotlinx.coroutines.ExperimentalCoroutinesApi," +
"kotlinx.coroutines.InternalCoroutinesApi," +
"kotlinx.coroutines.ObsoleteCoroutinesApi," +
"kotlinx.coroutines.FlowPreview"
freeCompilerArgs += "-Xopt-in=kotlin.ExperimentalStdlibApi"
}
}
}