[Gradle, JS] Deprecation of BOTH and LEGACY consts

^KT-55593 fixed
This commit is contained in:
Ilya Goncharov
2023-01-03 12:47:11 +00:00
committed by Space Team
parent 3744fbb31b
commit a0211fc5fe
9 changed files with 62 additions and 35 deletions
@@ -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 {
@@ -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
}