Skip to content

Commit d900166

Browse files
committed
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.
1 parent b8dbefc commit d900166

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.sbt

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ scalaModuleOsgiSettings
1313

1414
OsgiKeys.exportPackage := Seq(s"scala.util.parsing.*;version=${version.value}")
1515

16+
// needed to fix classloader issues (see scala-xml#20)
17+
fork in Test := true
18+
1619
libraryDependencies += "junit" % "junit" % "4.11" % "test"
1720

1821
libraryDependencies += "com.novocode" % "junit-interface" % "0.10" % "test"

0 commit comments

Comments
 (0)