forked from deanwampler/programming-scala-book-code-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
36 lines (29 loc) · 1.51 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
name := "Programming Scala, Second Edition - Code examples"
version := "2.0"
organization := "org.programming-scala"
scalaVersion := "2.11.6"
libraryDependencies ++= Seq(
"org.scala-lang.modules" %% "scala-async" % "0.9.2",
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.2",
"org.scala-lang.modules" %% "scala-xml" % "1.0.2",
"org.scala-lang" % "scala-reflect" % "2.11.2",
"com.typesafe.akka" %% "akka-actor" % "2.3.4",
"com.typesafe.akka" %% "akka-slf4j" % "2.3.4",
"ch.qos.logback" % "logback-classic" % "1.1.2",
"org.scalaz" %% "scalaz-core" % "7.1.0",
"org.scalacheck" %% "scalacheck" % "1.11.5" % "test",
"org.scalatest" %% "scalatest" % "2.2.1" % "test",
"org.specs2" %% "specs2" % "2.4" % "test",
// JUnit is used for some Java interop. examples. A driver for JUnit:
"junit" % "junit-dep" % "4.10" % "test",
"com.novocode" % "junit-interface" % "0.10" % "test"
)
scalacOptions ++= Seq(
"-encoding", "UTF-8", "-optimise",
"-deprecation", "-unchecked", "-feature", "-Xlint",
"-Ywarn-infer-any") // Nice, but hard to eliminate these warnings: "-Ywarn-value-discard")
javacOptions ++= Seq(
"-Xlint:unchecked", "-Xlint:deprecation") // Java 8: "-Xdiags:verbose")
// Enable improved incremental compilation feature in 2.11.X.
// see http://www.scala-lang.org/news/2.11.1
incOptions := incOptions.value.withNameHashing(true)