KT-52284 Kapt. Report error for kapt run with K2
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user