Prohibit JVM target 1.6
But still compile stdlib, reflect, kotlin.test and scripting runtimes with JVM target 1.6 to simplify migration from Kotlin 1.6 to 1.7. #KT-45165 Fixed
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ open class DefaultValues(val defaultValue: String, val possibleValues: List<Stri
|
||||
|
||||
object JvmTargetVersions : DefaultValues(
|
||||
"null",
|
||||
JvmTarget.values().map { "\"${it.description}\"" }
|
||||
JvmTarget.supportedValues().map { "\"${it.description}\"" }
|
||||
)
|
||||
|
||||
object JsEcmaVersions : DefaultValues(
|
||||
|
||||
+3
-2
@@ -75,7 +75,7 @@ class K2JVMCompilerArguments : CommonCompilerArguments() {
|
||||
@Argument(
|
||||
value = "-jvm-target",
|
||||
valueDescription = "<version>",
|
||||
description = "Target version of the generated JVM bytecode (1.6 (DEPRECATED), 1.8, 9, 10, ..., 18), default is 1.8"
|
||||
description = "Target version of the generated JVM bytecode (1.8, 9, 10, ..., 18), default is 1.8"
|
||||
)
|
||||
var jvmTarget: String? by NullableStringFreezableVar(null)
|
||||
|
||||
@@ -466,7 +466,8 @@ Also sets `-jvm-target` value equal to the selected JDK version"""
|
||||
|
||||
@Argument(
|
||||
value = "-Xsuppress-deprecated-jvm-target-warning",
|
||||
description = "Suppress deprecation warning about deprecated JVM target versions"
|
||||
description = "Suppress deprecation warning about deprecated JVM target versions.\n" +
|
||||
"This option has no effect and will be deleted in a future version."
|
||||
)
|
||||
var suppressDeprecatedJvmTargetWarning: Boolean by FreezableVar(false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user