-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
39 lines (33 loc) · 1.45 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
import scalariform.formatter.preferences._
name := "rest-akka-api"
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
version := "0.0.1"
scalaVersion := "2.11.7"
scalacOptions ++= List(
"-unchecked",
"-feature",
"-deprecation",
"-encoding",
"utf8"
)
unmanagedSourceDirectories.in(Compile) := List(scalaSource.in(Compile).value)
unmanagedSourceDirectories.in(Test) := List(scalaSource.in(Test).value)
libraryDependencies ++= {
val AkkaStreams = "2.0-M2"
val JacksonVersion = "3.3.0"
Seq(
"com.typesafe.akka" %% "akka-stream-experimental" % AkkaStreams,
"com.typesafe.akka" %% "akka-http-experimental" % AkkaStreams,
"com.typesafe.akka" %% "akka-http-core-experimental" % AkkaStreams,
"com.typesafe.akka" %% "akka-http-xml-experimental" % AkkaStreams,
"com.typesafe.akka" %% "akka-http-spray-json-experimental" % AkkaStreams,
"org.json4s" %% "json4s-jackson" % JacksonVersion,
"org.json4s" %% "json4s-ext" % JacksonVersion
)
}
scalariformSettings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(AlignSingleLineCaseStatements.MaxArrowIndent, 100)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(PreserveDanglingCloseParenthesis, true)