Enable extended compiler checks

This commit is contained in:
Username404 2021-06-26 11:09:43 +02:00
parent 98c8da32b5
commit 952e4f0c6e
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 4 additions and 1 deletions

View File

@ -180,7 +180,10 @@ allprojects {
tasks {
withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
with(kotlinOptions) {
freeCompilerArgs = listOf("-Xjvm-default=all", "-Xlambdas=indy", "-Xopt-in=kotlin.RequiresOptIn", "-progressive")
freeCompilerArgs = listOf(
"-Xjvm-default=all", "-Xlambdas=indy",
"-Xopt-in=kotlin.RequiresOptIn", "-Xextended-compiler-checks", "-progressive"
)
jvmTarget = if (javaVer.toInt() < 9) "1.$javaVer" else javaVer
languageVersion = (kotlinBaseVer.toDouble() + 0.1).toString()
apiVersion = kotlinBaseVer