[Gradle, JS] Deprecation of BOTH and LEGACY consts
^KT-55593 fixed
This commit is contained in:
committed by
Space Team
parent
3744fbb31b
commit
a0211fc5fe
+4
@@ -8,8 +8,12 @@ package org.jetbrains.kotlin.gradle.plugin
|
||||
import java.util.*
|
||||
|
||||
enum class KotlinJsCompilerType {
|
||||
@Deprecated("Legacy compiler is deprecated. Migrate your project to the new IR-based compiler")
|
||||
LEGACY,
|
||||
|
||||
IR,
|
||||
|
||||
@Deprecated("Legacy compiler is deprecated. Migrate your project to the new IR-based compiler")
|
||||
BOTH;
|
||||
|
||||
companion object {
|
||||
|
||||
+4
@@ -3,6 +3,8 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@file:Suppress("DEPRECATION")
|
||||
|
||||
package org.jetbrains.kotlin.gradle.plugin
|
||||
|
||||
interface KotlinJsCompilerTypeHolder {
|
||||
@@ -12,12 +14,14 @@ interface KotlinJsCompilerTypeHolder {
|
||||
get() = compilerTypeFromProperties ?: KotlinJsCompilerType.IR
|
||||
|
||||
// Necessary to get rid of KotlinJsCompilerType import in build script
|
||||
@Deprecated("Legacy compiler is deprecated. Migrate your project to the new IR-based compiler")
|
||||
val LEGACY: KotlinJsCompilerType
|
||||
get() = KotlinJsCompilerType.LEGACY
|
||||
|
||||
val IR: KotlinJsCompilerType
|
||||
get() = KotlinJsCompilerType.IR
|
||||
|
||||
@Deprecated("Legacy compiler is deprecated. Migrate your project to the new IR-based compiler")
|
||||
val BOTH: KotlinJsCompilerType
|
||||
get() = KotlinJsCompilerType.BOTH
|
||||
}
|
||||
Reference in New Issue
Block a user