mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
KTIJ-37329 [kotlin]: Post commits reverts
GitOrigin-RevId: 51c750d7b08e305f645fa5d340b28c17e20a3dc6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
54ce9d16b7
commit
c2624ebece
+5
-5
@@ -2,7 +2,6 @@
|
||||
|
||||
package org.jetbrains.kotlin.idea.compilerPlugin.allopen.maven
|
||||
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.util.text.VersionComparatorUtil
|
||||
import org.jetbrains.idea.maven.project.MavenProject
|
||||
import org.jetbrains.kotlin.allopen.AllOpenPluginNames.ANNOTATION_OPTION_NAME
|
||||
@@ -12,12 +11,13 @@ import org.jetbrains.kotlin.idea.base.plugin.artifacts.KotlinArtifacts
|
||||
import org.jetbrains.kotlin.idea.compilerPlugin.CompilerPluginSetup.PluginOption
|
||||
import org.jetbrains.kotlin.idea.jps.toJpsVersionAgnosticKotlinBundledPath
|
||||
import org.jetbrains.kotlin.idea.maven.compilerPlugin.AbstractMavenImportHandler
|
||||
import org.jetbrains.kotlin.idea.maven.getKotlinPlugin
|
||||
|
||||
class AllOpenMavenProjectImportHandler : AbstractMavenImportHandler() {
|
||||
override val compilerPluginId = PLUGIN_ID
|
||||
override val pluginName = "allopen"
|
||||
override val mavenPluginArtifactName = "kotlin-maven-allopen"
|
||||
override val pluginJarFileFromIdea = KotlinArtifacts.allopenCompilerPlugin.toJpsVersionAgnosticKotlinBundledPath()
|
||||
override val compilerPluginId: String = PLUGIN_ID
|
||||
override val pluginName: String = "allopen"
|
||||
override val mavenPluginArtifactName: String = "kotlin-maven-allopen"
|
||||
override val pluginJarFileFromIdea: String = KotlinArtifacts.allopenCompilerPlugin.toJpsVersionAgnosticKotlinBundledPath()
|
||||
|
||||
override fun getOptions(
|
||||
mavenProject: MavenProject,
|
||||
|
||||
+1
@@ -10,6 +10,7 @@ import org.jetbrains.kotlin.idea.compilerPlugin.CompilerPluginSetup
|
||||
import org.jetbrains.kotlin.idea.compilerPlugin.CompilerPluginSetup.PluginOption
|
||||
import org.jetbrains.kotlin.idea.compilerPlugin.modifyCompilerArgumentsForPluginWithFacetSettings
|
||||
import org.jetbrains.kotlin.idea.maven.MavenProjectImportHandler
|
||||
import org.jetbrains.kotlin.idea.maven.findKotlinPlugin
|
||||
|
||||
abstract class AbstractMavenImportHandler : MavenProjectImportHandler {
|
||||
abstract val compilerPluginId: String
|
||||
|
||||
+4
-4
@@ -19,8 +19,8 @@ class AllOpenKotlinMavenImporterTest : AbstractKotlinMavenImporterTest() {
|
||||
|
||||
with(facetSettings) {
|
||||
assertNotNull(compilerArguments?.pluginClasspaths)
|
||||
assertFalse(compilerArguments!!.pluginClasspaths!!.any { it.endsWith(KotlinArtifacts.allopenCompilerPluginPath.fileName.toString()) })
|
||||
assertTrue(compilerArguments!!.pluginClasspaths!!.any { it.endsWith(KotlinArtifacts.noargCompilerPluginPath.fileName.toString()) })
|
||||
assertFalse(compilerArguments!!.pluginClasspaths!!.any { it.endsWith(KotlinArtifacts.allopenCompilerPlugin.name) })
|
||||
assertTrue(compilerArguments!!.pluginClasspaths!!.any { it.endsWith(KotlinArtifacts.noargCompilerPlugin.name) })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,8 +34,8 @@ class AllOpenKotlinMavenImporterTest : AbstractKotlinMavenImporterTest() {
|
||||
|
||||
with(facetSettings) {
|
||||
assertNotNull(compilerArguments?.pluginClasspaths)
|
||||
assertTrue(compilerArguments!!.pluginClasspaths!!.any { it.endsWith(KotlinArtifacts.allopenCompilerPluginPath.fileName.toString()) })
|
||||
assertTrue(compilerArguments!!.pluginClasspaths!!.any { it.endsWith(KotlinArtifacts.noargCompilerPluginPath.fileName.toString()) })
|
||||
assertTrue(compilerArguments!!.pluginClasspaths!!.any { it.endsWith(KotlinArtifacts.allopenCompilerPlugin.name) })
|
||||
assertTrue(compilerArguments!!.pluginClasspaths!!.any { it.endsWith(KotlinArtifacts.noargCompilerPlugin.name) })
|
||||
assertArrayEquals(
|
||||
compilerArguments!!.pluginOptions!!,
|
||||
arrayOf(
|
||||
|
||||
Reference in New Issue
Block a user