-
Notifications
You must be signed in to change notification settings - Fork 91
/
build.sbt
72 lines (41 loc) · 2.18 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// --- project info ---
val virtScala = Option(System.getenv("SCALA_VIRTUALIZED_VERSION")).getOrElse("2.11.2")
lazy val lms = Project("LMS", file("."))
envVars := Map("showSuppressedErrors" -> "false", "showTimings" -> "false")
name := "lms-core"
organization := "org.scala-lang.lms"
description := "Lightweight Modular Staging"
homepage := Some(url("https://scala-lms.github.io"))
licenses := List("BSD-like" -> url("https://github.com/TiarkRompf/virtualization-lms-core/blob/develop/LICENSE"))
scmInfo := Some(ScmInfo(url("https://github.com/TiarkRompf/virtualization-lms-core"), "git@github.com:TiarkRompf/virtualization-lms-core.git"))
// developers := List(Developer("tiarkrompf", "Tiark Rompf", "@tiarkrompf", url("http://github.com/tiarkrompf")))
// --- scala settings ---
scalaVersion := virtScala
scalaOrganization := "org.scala-lang.virtualized"
scalaSource in Compile := baseDirectory.value / "src"
scalaSource in Test := baseDirectory.value / "test-src"
scalacOptions += "-Yvirtualize"
//scalacOptions += "-Yvirtpatmat"
//scalacOptions in Compile ++= Seq(/*Unchecked, */Deprecation)
// --- dependencies ---
libraryDependencies += ("org.scala-lang.virtualized" % "scala-library" % virtScala)
// Transitive dependency through scala-continuations-library
libraryDependencies += ("org.scala-lang.virtualized" % "scala-compiler" % virtScala).
exclude ("org.scala-lang", "scala-library").
exclude ("org.scala-lang", "scala-compiler")
libraryDependencies += ("org.scala-lang.plugins" % "scala-continuations-library_2.11" % "1.0.2").
exclude ("org.scala-lang", "scala-library").
exclude ("org.scala-lang", "scala-compiler")
libraryDependencies += ("org.scalatest" % "scalatest_2.11" % "2.2.2").
exclude ("org.scala-lang", "scala-library").
exclude ("org.scala-lang", "scala-compiler").
exclude ("org.scala-lang", "scala-reflect")
// continuations
autoCompilerPlugins := true
addCompilerPlugin("org.scala-lang.plugins" % "scala-continuations-plugin_2.11.2" % "1.0.2")
scalacOptions += "-P:continuations:enable"
// --- testing ---
// tests are not thread safe
parallelExecution in Test := false
// code coverage
scoverage.ScoverageSbtPlugin.ScoverageKeys.coverageHighlighting := false