[Plugins] Extract parts of cli modules which were used from IDE into common modules
This is needed to avoid IDE dependencies on cli modules, because they include FIR classes, which are inaccessible in regular Kotlin IDE plugin
This commit is contained in:
committed by
teamcity
parent
9b56a01d74
commit
66c2679673
@@ -17,6 +17,8 @@ import org.jetbrains.kotlin.config.CompilerConfiguration
|
||||
import org.jetbrains.kotlin.config.CompilerConfigurationKey
|
||||
import org.jetbrains.kotlin.fir.extensions.FirExtensionRegistrar
|
||||
import org.jetbrains.kotlin.lombok.LombokConfigurationKeys.CONFIG_FILE
|
||||
import org.jetbrains.kotlin.lombok.LombokPluginNames.CONFIG_OPTION_NAME
|
||||
import org.jetbrains.kotlin.lombok.LombokPluginNames.PLUGIN_ID
|
||||
import org.jetbrains.kotlin.lombok.k2.FirLombokRegistrar
|
||||
import org.jetbrains.kotlin.resolve.jvm.extensions.SyntheticJavaResolveExtension
|
||||
import java.io.File
|
||||
@@ -50,10 +52,8 @@ object LombokConfigurationKeys {
|
||||
class LombokCommandLineProcessor : CommandLineProcessor {
|
||||
|
||||
companion object {
|
||||
const val PLUGIN_ID = "org.jetbrains.kotlin.lombok"
|
||||
|
||||
val CONFIG_FILE_OPTION = CliOption(
|
||||
optionName = "config",
|
||||
optionName = CONFIG_OPTION_NAME,
|
||||
valueDescription = "<path>",
|
||||
description = "Lombok configuration file location",
|
||||
required = false
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.lombok
|
||||
|
||||
object LombokPluginNames {
|
||||
const val PLUGIN_ID = "org.jetbrains.kotlin.lombok"
|
||||
const val CONFIG_OPTION_NAME = "config"
|
||||
}
|
||||
Reference in New Issue
Block a user