Skip to content

Commit 150a237

Browse files
committed
Document why JVM forking has to be used in SBT
Add a comment with a description of the issue by Antoine Gourlay and refer to the relevant GitHub issues.
1 parent 713d2d9 commit 150a237

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: build.sbt

+5
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ libraryDependencies += "com.novocode" % "junit-interface" % "0.10" % "test"
3737
libraryDependencies += ("org.scala-lang" % "scala-compiler" % scalaVersion.value % "test").exclude("org.scala-lang.modules", s"scala-xml*")
3838

3939
mimaPreviousVersion := Some("1.0.5")
40+
41+
// You cannot disable JVM test forking when working on scala modules
42+
// that are distributed with the compiler because of an SBT
43+
// classloader leaking issue (scala/scala-xml#20 and #112).
44+
fork in Test := true

0 commit comments

Comments
 (0)