mirror of
https://github.com/sbt/sbt.git
synced 2026-10-07 10:33:30 +02:00
scripted: filter JLine classes from the class loader to avoid incompatibilities between the running and tested sbt versions
This commit is contained in:
@@ -32,7 +32,8 @@ object ScriptedPlugin extends Plugin {
|
||||
|
||||
def scriptedTestsTask: Initialize[Task[AnyRef]] = (scriptedClasspath, scalaInstance) map {
|
||||
(classpath, scala) =>
|
||||
val loader = ClasspathUtilities.toLoader(classpath, scala.loader)
|
||||
val parent = new sbt.classpath.FilteredLoader(scala.loader, "jline." :: Nil)
|
||||
val loader = ClasspathUtilities.toLoader(classpath, parent)
|
||||
ModuleUtilities.getObject("sbt.test.ScriptedTests", loader)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user