-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
64 lines (46 loc) · 1.89 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
name := "cornucopia"
organization := "com.adendamedia"
version := "0.6.2"
scalaVersion := "2.11.8"
enablePlugins(JavaAppPackaging, DockerPlugin)
resolvers += "Sonatype Releases" at "https://oss.sonatype.org/service/repositories/releases/"
resolvers += "Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/"
val akkaVersion = "2.4.17"
val testDependencies = Seq(
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % "test",
"org.scalatest" %% "scalatest" % "3.0.0" % "test",
"org.mockito" % "mockito-all" % "1.10.19" % Test
)
libraryDependencies ++= Seq(
"biz.paluch.redis" % "lettuce" % "5.0.0.Beta1",
"org.scala-lang.modules" % "scala-java8-compat_2.11" % "0.8.0",
"com.typesafe.akka" %% "akka-stream-kafka" % "0.11-RC1",
"com.typesafe.akka" %% "akka-http-core" % "2.4.11",
"com.typesafe.akka" %% "akka-http-experimental" % "2.4.11",
"com.typesafe.akka" %% "akka-http-spray-json-experimental" % "2.4.11",
"com.typesafe.akka" %% "akka-agent" % "2.4.11",
"com.adendamedia" %% "salad" % "0.9.2",
"org.slf4j" % "slf4j-log4j12" % "1.7.22"
) ++ testDependencies
// Add sonatype repository settings
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
// ------------------------------------------------ //
// ------------- Docker configuration ------------- //
// ------------------------------------------------ //
import NativePackagerHelper._
mappings in Universal ++= directory( baseDirectory.value / "src" / "main" / "resources" )
javaOptions in Universal ++= Seq(
"-Dconfig.file=etc/container.conf",
"-Dlog4j.configuration=file:/usr/local/etc/log4j.properties"
)
packageName in Docker := packageName.value
version in Docker := version.value
dockerBaseImage := "openjdk"
dockerRepository := Some("adenda")
defaultLinuxInstallLocation in Docker := "/usr/local"
daemonUser in Docker := "root"