-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
36 lines (30 loc) · 1.34 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 := "akka-examples"
version := "1.0"
scalaVersion := "2.12.5"
val akkaVersion = "2.5.12"
val akkaHttpVersion = "10.1.1"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-testkit" % akkaVersion,
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion,
"de.heikoseeberger" %% "akka-http-json4s" % "1.20.1",
"org.json4s" %% "json4s-native" % "3.5.3",
"org.scala-lang.modules" %% "scala-async" % "0.9.7",
"org.scalatest" %% "scalatest" % "3.0.4" % "test"
)
scalacOptions ++= Seq(
"-target:jvm-1.8", // Target Java 8
"-explaintypes", // Explain type errors with more detail
"-deprecation", // Emit deprecation warnings
"-feature", // Emit warnings where feature needs explicit import
"-unchecked", // Emit warnings related to type erasure
"-Ywarn-unused:imports", // Warn on unused imports
"-Xfatal-warnings" // Make warnings fatal
)
// Filter options that don't play well with the scala console.
// See https://tpolecat.github.io/2017/04/25/scalac-flags.html
scalacOptions in (Compile, console) ~= (_.filterNot(Set(
"-Ywarn-unused:imports",
"-Xfatal-warnings"
)))