Skip to content

Commit 0c9675a

Browse files
committed
add plugin/Scala/lib/modules/** to sbt classpath in tests #SCL-21681
1 parent 17dff0f commit 0c9675a

File tree

1 file changed

+2
-1
lines changed
  • ideaSupport/src/main/scala/org/jetbrains/sbtidea

1 file changed

+2
-1
lines changed

ideaSupport/src/main/scala/org/jetbrains/sbtidea/Init.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ trait Init { this: Keys.type =>
220220
val fullClasspathValue = fullClasspath.in(Test).value
221221
val pathFinder = PathFinder.empty +++ // the new IJ plugin loading strategy in tests requires external plugins to be prepended to the classpath
222222
packageOutputDir.value * globFilter("*.jar") +++
223-
packageOutputDir.value / "lib" * globFilter("*.jar")
223+
packageOutputDir.value / "lib" * globFilter("*.jar") +++
224+
packageOutputDir.value / "lib" / "modules" ** globFilter("*.jar")
224225
val allExportedProducts = exportedProducts.all(ScopeFilter(inDependencies(ThisProject), inConfigurations(Compile))).value.flatten
225226
pathFinder.classpath ++ (fullClasspathValue.to[mutable.LinkedHashSet] -- allExportedProducts.toSet).toSeq // exclude classes already in the artifact
226227
},

0 commit comments

Comments
 (0)