Add more kotlin compiler flags
This commit is contained in:
parent
019d0798d7
commit
b0f882f106
|
@ -180,9 +180,12 @@ allprojects {
|
|||
tasks {
|
||||
withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
|
||||
with(kotlinOptions) {
|
||||
// https://github.com/JetBrains/kotlin/blob/master/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JVMCompilerArguments.kt
|
||||
freeCompilerArgs = listOf(
|
||||
"-Xjvm-default=all", "-Xlambdas=indy",
|
||||
"-Xopt-in=kotlin.RequiresOptIn", "-Xextended-compiler-checks", "-progressive"
|
||||
"-Xmultifile-parts-inherit",
|
||||
"-Xparallel-backend-threads=0", "-Xno-param-assertions", "-Xno-call-assertions",
|
||||
"-Xopt-in=kotlin.RequiresOptIn", "-Xextended-compiler-checks", "-Xassertions=jvm", "-progressive"
|
||||
)
|
||||
jvmTarget = if (javaVer.toInt() < 9) "1.$javaVer" else javaVer
|
||||
languageVersion = (kotlinBaseVer.toDouble() + 0.1).toString()
|
||||
|
|
Loading…
Reference in New Issue