From d90016619fd6db8492c44b89103d1c96d17f7951 Mon Sep 17 00:00:00 2001 From: Antoine Gourlay Date: Sat, 8 Mar 2014 16:22:31 +0100 Subject: [PATCH] Test locally built scala parser-combinators classes. Somehow, the scala-parser-combinators classes used to run tests were not the local ones, even though there is no dependency on scala-compiler nor on anything that depends on scala-parser-combinators. After some head-scratching, I discovered scala/scala-xml#20. Now I am even more confused, but at least `fork in Test := true` does prevent this evil classloader magic. --- build.sbt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.sbt b/build.sbt index e88317e2..e214a6f9 100644 --- a/build.sbt +++ b/build.sbt @@ -13,6 +13,9 @@ scalaModuleOsgiSettings OsgiKeys.exportPackage := Seq(s"scala.util.parsing.*;version=${version.value}") +// needed to fix classloader issues (see scala-xml#20) +fork in Test := true + libraryDependencies += "junit" % "junit" % "4.11" % "test" libraryDependencies += "com.novocode" % "junit-interface" % "0.10" % "test"