Add more kotlin compiler flags

This commit is contained in:
Username404 2021-06-29 16:42:08 +02:00
parent 019d0798d7
commit b0f882f106
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 4 additions and 1 deletions

View File

@ -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()