Switch JVM target of the standard libraries to 1.8 #KT-51907

This commit is contained in:
Abduqodiri Qurbonzoda
2022-07-11 22:58:30 +03:00
parent 54980ce0d5
commit 34e50649e8
28 changed files with 44 additions and 37 deletions
@@ -141,6 +141,7 @@ fun Project.configureKotlinCompilationOptions() {
val jvmCompilerArgs = listOf(
"-Xno-optimized-callable-references",
"-Xno-kotlin-nothing-value-exception",
// Should this suppression be removed ?
"-Xsuppress-deprecated-jvm-target-warning" // Remove as soon as there are no modules for JDK 1.6 & 1.7
)
@@ -200,6 +201,7 @@ fun Project.configureKotlinCompilationOptions() {
}
}
// Should the workaround be removed ?
// Still compile stdlib, reflect, kotlin.test and scripting runtimes
// with JVM target 1.6 to simplify migration from Kotlin 1.6 to 1.7.
fun Project.applyFixForStdlib16() {