forked from zalando-incubator/remora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
63 lines (57 loc) · 2.86 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
lazy val commonSettings = Seq(
name := "remora",
organization := "de.zalando",
scalaVersion := "2.11.8"
)
lazy val dockerSettings = Seq(
daemonUser in Docker := "root",
dockerBaseImage in Docker := "registry.opensource.zalan.do/stups/openjdk:8u66-b17-1-2",
dockerExposedPorts in Docker := Seq(9000),
dockerExposedVolumes in Docker := Seq("/opt/docker/logs"),
dockerRepository in Docker := sys.props.get("docker.repo"),
maintainer in Docker := "[email protected]"
)
lazy val gitSettings = Seq(
git.useGitDescribe := true
)
lazy val root = (project in file("."))
.settings(commonSettings)
.settings(dockerSettings)
.settings(gitSettings)
.enablePlugins(
GitVersioning,
JavaServerAppPackaging,
ScmSourcePlugin
)
ivyScala := ivyScala.value map {
_.copy(overrideScalaVersion = true)
}
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.1.8",
"de.heikoseeberger" %% "akka-http-play-json" % "1.15.0",
"nl.grons" %% "metrics-scala" % "3.5.5_a2.3",
"io.dropwizard.metrics" % "metrics-json" % "3.1.2",
"io.dropwizard.metrics" % "metrics-jvm" % "3.1.2",
"com.blacklocus" % "metrics-cloudwatch" % "0.4.0",
"com.amazonaws" % "aws-java-sdk" % "1.11.189",
"com.typesafe.scala-logging"%% "scala-logging" % "3.7.2",
"com.typesafe.akka" %% "akka-actor" % "2.4.17",
"com.typesafe.akka" %% "akka-http" % "10.0.5",
"com.typesafe.akka" %% "akka-slf4j" % "2.4.17",
"org.apache.httpcomponents" % "httpcore" % "4.4.5",
"org.apache.httpcomponents" % "httpclient" % "4.5.2",
"org.joda" % "joda-convert" % "1.8.1",
"org.slf4j" % "jcl-over-slf4j" % "1.7.22",
"org.slf4j" % "log4j-over-slf4j" % "1.7.22",
"org.scalaz" %% "scalaz-core" % "7.2.8",
"com.typesafe.play" %% "play-json" % "2.6.2",
"org.apache.kafka" %% "kafka" % "0.10.2.1",
"com.typesafe.akka" %% "akka-http-testkit" % "10.0.5" % "test",
"org.scalatest" %% "scalatest" % "2.2.4" % "test",
"org.scalamock" %% "scalamock-scalatest-support" % "3.2" % "test",
"net.manub" %% "scalatest-embedded-kafka" % "0.13.1" % "test"
).map(_.exclude("org.slf4j", "slf4j-log4j12"))
assemblyMergeStrategy in assembly := {
case PathList("org", "apache", "commons", "logging", xs @ _*) => MergeStrategy.first
case default => (assemblyMergeStrategy in assembly).value(default)
}