This repository has been archived by the owner on Sep 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbuild.sbt
90 lines (69 loc) · 4.07 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import com.typesafe.sbt.SbtScalariform.{ScalariformKeys, _}
import com.typesafe.sbt.packager.archetypes.JavaAppPackaging
import sbt.dsl._
import spray.revolver.RevolverPlugin.Revolver
import scalariform.formatter.preferences.{SpacesAroundMultiImports, PreserveSpaceBeforeArguments, Preserve, DanglingCloseParenthesis, AlignSingleLineCaseStatements, DoubleIndentClassDeclaration}
name := """innkeeper"""
organization := "org.zalando.spearheads"
version := "0.4.33"
mainClass in Compile := Some("org.zalando.spearheads.innkeeper.Innkeeper")
scalaVersion := "2.11.11"
scalacOptions := Seq("-unchecked", "-feature", "-deprecation", "-encoding", "utf8")
scapegoatVersion := "1.2.1"
resolvers += "Whisk" at "https://dl.bintray.com/whisk/maven"
resolvers += "softprops-maven" at "http://dl.bintray.com/content/softprops/maven"
resolvers += "zalando-maven" at "https://dl.bintray.com/zalando/maven"
resolvers += "Flyway" at "https://flywaydb.org/repo"
val akkaV = "2.4.11.2"
val akkaHttpV = "10.0.6"
val scalaTestV = "3.0.0-M15"
val scalaMockV = "3.2.2"
val slickPgV = "0.13.0"
val slickV = "3.1.1"
libraryDependencies ++= List(
"org.scala-lang.modules" %% "scala-xml" % "1.0.5",
"com.typesafe.slick" %% "slick" % slickV,
"com.typesafe.slick" %% "slick-hikaricp" % slickV exclude("com.zaxxer", "HikariCP-java6"),
"com.typesafe.akka" %% "akka-stream" % akkaV,
"com.typesafe.akka" %% "akka-http" % akkaHttpV,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpV,
"com.typesafe.akka" %% "akka-slf4j" % akkaV,
"com.typesafe.scala-logging" %% "scala-logging" % "3.5.0",
"ch.qos.logback" % "logback-classic" % "1.1.7",
"com.google.guava" % "guava" % "21.0",
"net.codingwell" %% "scala-guice" % "4.1.0" exclude("com.google.guava", "guava"),
"org.postgresql" % "postgresql" % "9.4-1206-jdbc42",
"com.github.tminglei" %% "slick-pg" % slickPgV,
"com.github.tminglei" %% "slick-pg_date2" % slickPgV,
"com.zaxxer" % "HikariCP" % "2.4.5",
"io.dropwizard.metrics" % "metrics-core" % "3.2.2",
"org.asynchttpclient" % "async-http-client" % "2.0.10",
"net.jodah" % "failsafe" % "0.8.3",
"org.flywaydb" % "flyway-core" % "4.0.3",
"org.scalatest" %% "scalatest" % scalaTestV % "it,test",
"org.scalamock" %% "scalamock-scalatest-support" % scalaMockV % "it,test",
"com.typesafe.akka" %% "akka-http-testkit" % akkaV % "it,test",
"com.typesafe.akka" %% "akka-stream-testkit" % akkaV % "it,test"
)
lazy val root = project.in(file(".")).configs(IntegrationTest)
Defaults.itSettings
scalariformSettingsWithIt
Revolver.settings
enablePlugins(JavaAppPackaging)
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(AlignSingleLineCaseStatements.MaxArrowIndent, 100)
.setPreference(PreserveSpaceBeforeArguments, true)
.setPreference(DanglingCloseParenthesis, Preserve)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(SpacesAroundMultiImports, false)
//.setPreference(AlignArguments, true)
//.setPreference(AlignParameters, true)
assemblyMergeStrategy in assembly := {
case PathList("META-INF", "io.netty.versions.properties") => MergeStrategy.last
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
parallelExecution in IntegrationTest := false
fork in run := true