From b4ffa56ea46172caf1e81cff713709ff6c258cc5 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Thu, 8 Dec 2022 23:13:30 +0100 Subject: [PATCH] Deprecate legacy mode of jvm-abi-gen #KT-54756 Fixed --- .../jetbrains/kotlin/jvm/abi/JvmAbiComponentRegistrar.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/jvm-abi-gen/src/org/jetbrains/kotlin/jvm/abi/JvmAbiComponentRegistrar.kt b/plugins/jvm-abi-gen/src/org/jetbrains/kotlin/jvm/abi/JvmAbiComponentRegistrar.kt index eedf59454c5..5abb948aa91 100644 --- a/plugins/jvm-abi-gen/src/org/jetbrains/kotlin/jvm/abi/JvmAbiComponentRegistrar.kt +++ b/plugins/jvm-abi-gen/src/org/jetbrains/kotlin/jvm/abi/JvmAbiComponentRegistrar.kt @@ -24,6 +24,12 @@ class JvmAbiComponentRegistrar : CompilerPluginRegistrar() { if (configuration.get(JvmAbiConfigurationKeys.LEGACY_ABI_GEN, false)) { if (configuration.getBoolean(CommonConfigurationKeys.USE_FIR)) { messageCollector.report(CompilerMessageSeverity.ERROR, "Legacy jvm-abi-gen does not support K2 compiler.") + } else { + messageCollector.report( + CompilerMessageSeverity.STRONG_WARNING, + "Legacy jvm-abi-gen is deprecated and will be removed in a future version. " + + "Please migrate to the new jvm-abi-gen implementation." + ) } // Use the two-pass implementation if (outputPath.endsWith(".jar")) {