[FE] Add ability to set compatibility of plugin with K2 in ComponentRegistrar
This commit is contained in:
committed by
teamcity
parent
67589b1b09
commit
4003ca0691
+6
-1
@@ -43,6 +43,11 @@ private fun <T : Any> ProjectExtensionDescriptor<T>.registerExtensionIfRequired(
|
||||
}
|
||||
|
||||
class ScriptingCompilerConfigurationComponentRegistrar : ComponentRegistrar {
|
||||
// Actually this plugin don't support K2, but it automatically registered in some cases,
|
||||
// so for now this flag is just a stub
|
||||
override val supportsK2: Boolean
|
||||
get() = true
|
||||
|
||||
override fun registerProjectComponents(project: MockProject, configuration: CompilerConfiguration) {
|
||||
val messageCollector = configuration.get(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY)
|
||||
val hostConfiguration = ScriptingHostConfiguration(defaultJvmScriptingHostConfiguration) {
|
||||
@@ -84,4 +89,4 @@ private inline fun withClassloadingProblemsReporting(messageCollector: MessageCo
|
||||
System.err.println(msg)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user