-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
44 lines (34 loc) · 1.29 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
import scalariform.formatter.preferences._
import com.typesafe.sbt.SbtScalariform
import com.typesafe.sbt.SbtScalariform.ScalariformKeys
name := "akka-http-etag-example"
version := "0.1.0"
organization := "com.wlangiewicz"
scalaVersion := "2.12.0"
scalacOptions := Seq(
"-unchecked",
"-deprecation",
"-encoding", "utf8",
"-Xlint:missing-interpolator",
"-Ywarn-unused-import",
"-Ywarn-dead-code")
libraryDependencies ++= {
val akkaVersion = "2.4.12"
val akkaHttpVersion = "10.0.0"
Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-http-core" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion % "test",
"org.scalatest" %% "scalatest" % "3.0.1" % "test"
)
}
SbtScalariform.scalariformSettings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(SpacesAroundMultiImports, false)
.setPreference(CompactControlReadability, false)