-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sbt
More file actions
51 lines (39 loc) · 2.1 KB
/
build.sbt
File metadata and controls
51 lines (39 loc) · 2.1 KB
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
45
46
47
48
49
50
51
import com.typesafe.sbt.SbtScalariform.{ScalariformKeys, _}
import spray.revolver.RevolverPlugin.Revolver
import scalariform.formatter.preferences.{AlignSingleLineCaseStatements, DoubleIndentClassDeclaration, AlignParameters}
name := "scala-microservice-template"
organization := "indix"
version := "1.0"
scalaVersion := "2.11.7"
scalacOptions := Seq("-encoding", "UTF-8", "-deprecation", "-feature", "-unchecked", "-Xfatal-warnings", "-Xlint")
mainClass in Compile := Some("com.indix.petstore.PetStore")
val akkaHttpV = "2.0-M2"
val scalaTestV = "2.2.5"
val scalaMockV = "3.2.2"
libraryDependencies ++= List(
"com.typesafe.slick" %% "slick" % "3.0.1",
"com.typesafe.akka" %% "akka-http-core-experimental" % akkaHttpV,
"com.typesafe.akka" %% "akka-http-spray-json-experimental" % akkaHttpV,
"com.typesafe.akka" %% "akka-slf4j" % "2.3.9",
"com.typesafe" % "config" % "1.2.1",
"ch.qos.logback" % "logback-classic" % "1.1.3",
"org.postgresql" % "postgresql" % "9.3-1103-jdbc41",
"com.github.tminglei" %% "slick-pg" % "0.9.1",
"com.zaxxer" % "HikariCP" % "2.4.1",
"org.scalatest" %% "scalatest" % scalaTestV % "it,test",
"org.scalamock" %% "scalamock-scalatest-support" % scalaMockV % "it,test",
"com.typesafe.akka" %% "akka-http-testkit-experimental" % akkaHttpV % "it,test"
)
lazy val root = Project(
id = "scala-microservice-template",
base = file(".")
).configs(IntegrationTest)
Defaults.itSettings
scalariformSettings
Revolver.settings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(AlignSingleLineCaseStatements.MaxArrowIndent, 100)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(AlignParameters, true)
fork in run := true