[CLI, Gradle] Update GradleDeprecatedOption.removeAfter values
The values updated to follow the deprecation cycle "warning -> error -> removed" ^KT-65986 In Progress
This commit is contained in:
committed by
Space Team
parent
d20f31e963
commit
95fd91ae16
+2
-2
@@ -453,8 +453,8 @@ They should be a subset of sources passed as free arguments."""
|
|||||||
|
|
||||||
@GradleDeprecatedOption(
|
@GradleDeprecatedOption(
|
||||||
message = "Compiler flag -Xuse-k2 is deprecated; please use language version 2.0 instead",
|
message = "Compiler flag -Xuse-k2 is deprecated; please use language version 2.0 instead",
|
||||||
level = DeprecationLevel.WARNING,
|
level = DeprecationLevel.WARNING, // TODO: KT-65990 switch to ERROR in 2.1
|
||||||
removeAfter = LanguageVersion.KOTLIN_2_0,
|
removeAfter = LanguageVersion.KOTLIN_2_1,
|
||||||
)
|
)
|
||||||
@GradleOption(
|
@GradleOption(
|
||||||
DefaultValue.BOOLEAN_FALSE_DEFAULT,
|
DefaultValue.BOOLEAN_FALSE_DEFAULT,
|
||||||
|
|||||||
+4
-4
@@ -50,8 +50,8 @@ class K2JSCompilerArguments : CommonCompilerArguments() {
|
|||||||
)
|
)
|
||||||
@GradleDeprecatedOption(
|
@GradleDeprecatedOption(
|
||||||
message = "Only for legacy backend.",
|
message = "Only for legacy backend.",
|
||||||
level = DeprecationLevel.WARNING,
|
level = DeprecationLevel.WARNING, // TODO: KT-65990 switch to ERROR in 2.1
|
||||||
removeAfter = LanguageVersion.KOTLIN_2_0,
|
removeAfter = LanguageVersion.KOTLIN_2_1,
|
||||||
)
|
)
|
||||||
@Argument(value = "-no-stdlib", description = "Don't automatically include the default Kotlin/JS stdlib in compilation dependencies.")
|
@Argument(value = "-no-stdlib", description = "Don't automatically include the default Kotlin/JS stdlib in compilation dependencies.")
|
||||||
var noStdlib = false
|
var noStdlib = false
|
||||||
@@ -150,8 +150,8 @@ class K2JSCompilerArguments : CommonCompilerArguments() {
|
|||||||
)
|
)
|
||||||
@GradleDeprecatedOption(
|
@GradleDeprecatedOption(
|
||||||
message = "Only for legacy backend.",
|
message = "Only for legacy backend.",
|
||||||
level = DeprecationLevel.WARNING,
|
level = DeprecationLevel.WARNING, // TODO: KT-65990 switch to ERROR in 2.1
|
||||||
removeAfter = LanguageVersion.KOTLIN_2_0,
|
removeAfter = LanguageVersion.KOTLIN_2_1,
|
||||||
)
|
)
|
||||||
@Deprecated("It is senseless to use with IR compiler. Only for compatibility.")
|
@Deprecated("It is senseless to use with IR compiler. Only for compatibility.")
|
||||||
@Argument(value = "-meta-info", description = "Generate .meta.js and .kjsm files with metadata. Use this to create a library.")
|
@Argument(value = "-meta-info", description = "Generate .meta.js and .kjsm files with metadata. Use this to create a library.")
|
||||||
|
|||||||
+2
-2
@@ -21,8 +21,8 @@ class K2JSDceArguments : CommonToolArguments() {
|
|||||||
)
|
)
|
||||||
@GradleDeprecatedOption(
|
@GradleDeprecatedOption(
|
||||||
message = "Use task 'destinationDirectory' to configure output directory",
|
message = "Use task 'destinationDirectory' to configure output directory",
|
||||||
level = DeprecationLevel.WARNING,
|
level = DeprecationLevel.ERROR,
|
||||||
removeAfter = LanguageVersion.KOTLIN_1_9,
|
removeAfter = LanguageVersion.KOTLIN_2_0,
|
||||||
)
|
)
|
||||||
@Argument(
|
@Argument(
|
||||||
value = "-output-dir",
|
value = "-output-dir",
|
||||||
|
|||||||
Reference in New Issue
Block a user