Skip to content

Commit dc367a8

Browse files
committed
[build] Exclude the junie plugin from the list of idea plugins in the main projects (community and ultimate) #SCL-23792
#noport - The junie plugin has some issues when enabled in a test instance of IDEA. - This is a workaround to avoid currently failing tests. - Unfortunately, this does nothing when running the tests from IDEA. - We need to figure out a more correct way forward.
1 parent 9b29a88 commit dc367a8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

project/Common.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import CompilationCache.compilationCacheSettings
22
import com.github.sbt.junit.jupiter.sbt.Import.JupiterKeys.junitJupiterVersion
3+
import org.jetbrains.sbtidea.IntellijPlugin
4+
35
import kotlin.Keys.{kotlinRuntimeProvided, kotlinVersion, kotlincJvmTarget}
46
import kotlin.KotlinPlugin
57
import org.jetbrains.sbtidea.Keys.*
@@ -120,7 +122,10 @@ object Common {
120122
Dependencies.scalaReflect -> Some("lib/scala-reflect.jar"),
121123
Dependencies.scalaXml -> Some("lib/scala-xml.jar"),
122124
),
123-
intellijPlugins := intellijPlugins.all(intellijPluginsScopeFilter).value.flatten.distinct,
125+
intellijPlugins := intellijPlugins.all(intellijPluginsScopeFilter).value.flatten.distinct.filter {
126+
case plugin: IntellijPlugin.WithKnownId => plugin.id != "org.jetbrains.junie"
127+
case _ => true
128+
},
124129
intellijExtraRuntimePluginsInTests := Seq(
125130
//Below are some other useful plugins which you might be interested to inspect
126131
//We don't have any dependencies on those plugins, however sometimes it might be useful to see how some features are implemented in them plugin.

0 commit comments

Comments
 (0)