mirror of
https://github.com/sbt/sbt.git
synced 2026-09-03 16:39:24 +02:00
don't include si.allJars into the test classpath
allJars contains unwanted Scala modules. Having this in prevents the flat classloader from working correctly. Ref #4609
This commit is contained in:
@@ -31,8 +31,8 @@ private[sbt] object ClassLoaders {
|
||||
private[sbt] def testTask: Def.Initialize[Task[ClassLoader]] = Def.task {
|
||||
val si = scalaInstance.value
|
||||
val rawCP = data(fullClasspath.value)
|
||||
val fullCP = if (si.isManagedVersion) rawCP else si.allJars.toSeq ++ rawCP
|
||||
val exclude = dependencyJars(exportedProducts).value.toSet ++ si.allJars
|
||||
val fullCP = if (si.isManagedVersion) rawCP else List(si.libraryJar) ++ rawCP
|
||||
val exclude = dependencyJars(exportedProducts).value.toSet ++ Set(si.libraryJar)
|
||||
buildLayers(
|
||||
strategy = classLoaderLayeringStrategy.value,
|
||||
si = si,
|
||||
|
||||
Reference in New Issue
Block a user