[KAPT4] KT-61761 Prevent Kapt from reporting unsupported plugin in K2/PSI

Also:
- remove the redundant KaptOptions.USE_K2
- prevent registration of Kapt4AnalysisHandlerExtension in K1
This commit is contained in:
strangepleasures
2023-09-12 16:58:38 +00:00
committed by Space Team
parent 6475942ced
commit 52b0ea65d2
4 changed files with 10 additions and 18 deletions
@@ -149,10 +149,9 @@ class K2JVMCompiler : CLICompiler<K2JVMCompilerArguments>() {
createProjectEnvironment(configuration, rootDisposable, EnvironmentConfigFiles.JVM_CONFIG_FILES, messageCollector)
if (messageCollector.hasErrors()) return COMPILATION_ERROR
// TODO: uncomment (KT-61761)
// if (!FirKotlinToJvmBytecodeCompiler.checkNotSupportedPlugins(configuration, messageCollector)) {
// return COMPILATION_ERROR
// }
if (!FirKotlinToJvmBytecodeCompiler.checkNotSupportedPlugins(configuration, messageCollector)) {
return COMPILATION_ERROR
}
compileModulesUsingFrontendIrAndLightTree(
projectEnvironment, configuration, messageCollector, buildFile, chunk.single(), targetDescription,