KT-52284 Kapt. Report error for kapt run with K2

This commit is contained in:
Simon Ogorodnik
2022-05-05 17:15:20 +03:00
committed by Space
parent 7f1d17c25e
commit 0b88748623
@@ -70,10 +70,9 @@ class Kapt3CommandLineProcessor : CommandLineProcessor {
}
if (configuration.getBoolean(CommonConfigurationKeys.USE_FIR)) {
configuration[CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY]?.report(
CompilerMessageSeverity.STRONG_WARNING,
"ATTENTION!\n kapt currently doesn't support experimental K2 compiler, disabling K2 for kapt run"
CompilerMessageSeverity.ERROR,
"kapt currently doesn't support experimental K2 compiler"
)
configuration.put(CommonConfigurationKeys.USE_FIR, false)
}
val kaptOptions = configuration[KAPT_OPTIONS]