Skip to content

Commit a6ae135

Browse files
author
astojanov
committed
Exclude transitive dependencies of the non-virutalized scala compiler.
1 parent 80a4206 commit a6ae135

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

build.sbt

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,21 @@ scalacOptions += "-Yvirtualize"
1818

1919
//scalacOptions in Compile ++= Seq(/*Unchecked, */Deprecation)
2020

21+
libraryDependencies += ("org.scala-lang.virtualized" % "scala-library" % virtScala)
2122

22-
libraryDependencies += "org.scala-lang.virtualized" % "scala-library" % virtScala
23+
// Transitive dependency through scala-continuations-library
24+
libraryDependencies += ("org.scala-lang.virtualized" % "scala-compiler" % virtScala).
25+
exclude ("org.scala-lang", "scala-library").
26+
exclude ("org.scala-lang", "scala-compiler")
2327

24-
libraryDependencies += "org.scala-lang.virtualized" % "scala-compiler" % virtScala
25-
26-
libraryDependencies += "org.scala-lang.plugins" % "scala-continuations-library_2.11" % "1.0.2"
27-
28-
libraryDependencies += scalaTest
28+
libraryDependencies += ("org.scala-lang.plugins" % "scala-continuations-library_2.11" % "1.0.2").
29+
exclude ("org.scala-lang", "scala-library").
30+
exclude ("org.scala-lang", "scala-compiler")
2931

32+
libraryDependencies += ("org.scalatest" % "scalatest_2.11" % "2.2.2").
33+
exclude ("org.scala-lang", "scala-library").
34+
exclude ("org.scala-lang", "scala-compiler").
35+
exclude ("org.scala-lang", "scala-reflect")
3036

3137
// tests are not thread safe
3238
parallelExecution in Test := false

project/Build.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import java.io.File
44
object LMSBuild extends Build {
55
System.setProperty("showSuppressedErrors", "false")
66

7-
val scalaTest = "org.scalatest" % "scalatest_2.11" % "2.2.2"
8-
97
val virtScala = Option(System.getenv("SCALA_VIRTUALIZED_VERSION")).getOrElse("2.11.2")
108

119
lazy val lms = Project("LMS", file("."))

0 commit comments

Comments
 (0)