-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
53 lines (42 loc) · 1.48 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
enablePlugins(JavaAppPackaging)
enablePlugins(DockerPlugin)
maintainer in Docker := "Alexey Ponkin <alexey.ponkin@gmail.com>"
packageSummary in Docker := "Ticket reservation system"
dockerExposedPorts ++= Seq(8080)
daemonUser := "tss"
dockerRepository := Some("ponkin")
mappings in Universal += {
// we are using the reference.conf as default application.conf
// the user can override settings here
val conf = (resourceDirectory in Compile).value / "reference.conf"
conf -> "conf/application.conf"
}
javaOptions in Universal ++= Seq(
// -J params will be added as jvm parameters
"-J-Xmx256mb",
"-J-Xms1g"
)
bashScriptExtraDefines += """addJava "-Dconfig.file=${app_home}/../conf/application.conf""""
val akkaV = "2.5.0"
val akkaHttpV = "10.0.5"
lazy val root = (project in file("."))
.settings(
name := "TicketReservation",
scalaVersion := "2.12.1",
scalacOptions ++= Seq (
"-deprecation",
"-feature",
"-language:implicitConversions",
"-language:postfixOps"
),
libraryDependencies ++= Seq(
"com.github.melrief" %% "pureconfig" % "0.4.0",
"com.typesafe.akka" %% "akka-actor" % akkaV,
"com.typesafe.akka" %% "akka-stream" % akkaV,
"com.typesafe.akka" %% "akka-http" % akkaHttpV,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpV,
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpV,
"com.typesafe.akka" %% "akka-testkit" % akkaV % "test",
"org.scalatest" %% "scalatest" % "3.0.1" % "test"
)
)