-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
39 lines (32 loc) · 1.16 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
name := "Programming-In-Scala"
version := "1.0"
scalaVersion := "2.11.8"
// Change this to another test framework if you prefer
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.0-M15" % "test"
libraryDependencies += "org.scalactic" %% "scalactic" % "3.0.0-M15"
// Uncomment to use Akka
libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.4.2"
libraryDependencies := {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, scalaMajor)) if scalaMajor >= 11 =>
libraryDependencies.value :+ "org.scala-lang" % "scala-reflect" % "2.11.8"
case _ =>
libraryDependencies.value
}
}
libraryDependencies := {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, scalaMajor)) if scalaMajor >= 11 =>
libraryDependencies.value :+ "org.scala-lang.modules" %% "scala-xml" % "1.0.4"
case _ =>
libraryDependencies.value
}
}
libraryDependencies := {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, scalaMajor)) if scalaMajor >= 11 =>
libraryDependencies.value :+ "org.scala-lang" % "scala-compiler" % "2.11.8"
case _ =>
libraryDependencies.value
}
}