aboutsummaryrefslogtreecommitdiff
path: root/project/Build.scala
diff options
context:
space:
mode:
Diffstat (limited to 'project/Build.scala')
-rw-r--r--project/Build.scala10
1 files changed, 7 insertions, 3 deletions
diff --git a/project/Build.scala b/project/Build.scala
index 0e58cef68..145e3eb85 100644
--- a/project/Build.scala
+++ b/project/Build.scala
@@ -21,7 +21,7 @@ object DottyBuild extends Build {
resourceDirectory in Compile := baseDirectory.value / "resources",
unmanagedSourceDirectories in Compile := Seq((scalaSource in Compile).value),
unmanagedSourceDirectories in Test := Seq((scalaSource in Test).value),
-
+
// include sources in eclipse (downloads source code for all dependencies)
//http://stackoverflow.com/questions/10472840/how-to-attach-sources-to-sbt-managed-dependencies-in-scala-ide#answer-11683728
com.typesafe.sbteclipse.plugin.EclipsePlugin.EclipseKeys.withSource := true,
@@ -34,17 +34,21 @@ object DottyBuild extends Build {
"org.scala-lang.modules" %% "scala-xml" % "1.0.1"),
// get junit onboard
- libraryDependencies += "com.novocode" % "junit-interface" % "0.9" % "test",
+ libraryDependencies += "com.novocode" % "junit-interface" % "0.11-RC1" % "test",
// scalac options
scalacOptions in Global ++= Seq("-feature", "-deprecation", "-language:_"),
+ javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation"),
+
// enable verbose exception messages for JUnit
- testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-v"),
+ testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-v", "--run-listener=test.ContextEscapeDetector"),
// Adjust classpath for running dotty
mainClass in (Compile, run) := Some("dotty.tools.dotc.Main"),
fork in run := true,
fork in Test := true,
+ parallelExecution in Test := false,
+
// http://grokbase.com/t/gg/simple-build-tool/135ke5y90p/sbt-setting-jvm-boot-paramaters-for-scala
javaOptions <++= (managedClasspath in Runtime, packageBin in Compile) map { (attList, bin) =>
// put the Scala {library, reflect, compiler} in the classpath