Remove duplicated code in annotation-based-compiler-plugins-ide-support
This commit is contained in:
committed by
TeamCityServer
parent
8afb6d2761
commit
e4a5775570
@@ -13,6 +13,7 @@ dependencies {
|
||||
compileOnly(project(":idea:idea-jvm"))
|
||||
compileOnly(project(":idea:idea-jps-common"))
|
||||
compileOnly(project(":idea:idea-maven"))
|
||||
compileOnly(project(":idea:idea-gradle"))
|
||||
compileOnly(intellijDep())
|
||||
excludeInAndroidStudio(rootProject) { compileOnly(intellijPluginDep("maven")) }
|
||||
compileOnly(intellijPluginDep("gradle"))
|
||||
|
||||
+3
-3
@@ -23,9 +23,9 @@ class LombokMavenProjectImportHandler : AbstractMavenImportHandler() {
|
||||
): List<PluginOption>? {
|
||||
if (!enabledCompilerPlugins.contains(pluginName)) return null
|
||||
|
||||
return compilerPluginOptions.mapNotNull { v ->
|
||||
if (v.startsWith(CONFIG_FILE_PREFIX)) {
|
||||
val location = v.substring(CONFIG_FILE_PREFIX.length)
|
||||
return compilerPluginOptions.mapNotNull { option ->
|
||||
if (option.startsWith(CONFIG_FILE_PREFIX)) {
|
||||
val location = option.substring(CONFIG_FILE_PREFIX.length)
|
||||
PluginOption(CONFIG_FILE_OPTION.optionName, location)
|
||||
} else {
|
||||
null
|
||||
|
||||
Reference in New Issue
Block a user