Set -Xjvm-default=enable

This commit is contained in:
Him188 2020-08-20 20:24:08 +08:00
parent 1c5ca81c8b
commit 3b540a102d
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ kotlin {
target.compilations.all {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = freeCompilerArgs + "-Xjvm-default=all"
freeCompilerArgs = freeCompilerArgs + "-Xjvm-default=enable"
//useIR = true
}
}

View File

@ -10,7 +10,7 @@ kotlin {
target.compilations.all {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = freeCompilerArgs + "-Xjvm-default=all"
freeCompilerArgs = freeCompilerArgs + "-Xjvm-default=enable"
}
}