From 150a23771844e0fda4ed1f6cb15aa09ebffcb39d Mon Sep 17 00:00:00 2001 From: "Aaron S. Hawley" Date: Fri, 30 Sep 2016 22:06:28 -0400 Subject: [PATCH] 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. --- build.sbt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.sbt b/build.sbt index c0e1bb5c4..cb27cd845 100644 --- a/build.sbt +++ b/build.sbt @@ -37,3 +37,8 @@ libraryDependencies += "com.novocode" % "junit-interface" % "0.10" % "test" libraryDependencies += ("org.scala-lang" % "scala-compiler" % scalaVersion.value % "test").exclude("org.scala-lang.modules", s"scala-xml*") mimaPreviousVersion := Some("1.0.5") + +// You cannot disable JVM test forking when working on scala modules +// that are distributed with the compiler because of an SBT +// classloader leaking issue (scala/scala-xml#20 and #112). +fork in Test := true