-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
54 lines (48 loc) · 2.25 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
name := "arch"
version := "0.1.1"
lazy val akkaVersion = "2.5.3"
lazy val elastic4sVersion = "6.2.5"
PB.targets in Compile := Seq(
scalapb.gen() -> (sourceManaged in Compile).value
)
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"com.typesafe.akka" %% "akka-testkit" % akkaVersion,
"com.typesafe.akka" %% "akka-http" % "10.1.2",
"com.typesafe.akka" %% "akka-stream" % "2.5.11",
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"org.scala-lang.modules" %% "scala-xml" % "1.1.0",
"com.google.cloud" % "google-cloud-storage" % "1.24.1", // GCS
"org.neo4j.driver" % "neo4j-java-driver" % "1.4.4", // Neo4j
"ch.qos.logback" % "logback-classic" % "1.2.3", // Logging
"org.json4s" %% "json4s-native" % "3.5.3", // JSON Parser
"com.univocity" % "univocity-parsers" % "2.6.3", // CSV Parser
"com.newmotion" %% "akka-rabbitmq" % "5.0.0", // RabbitMQ
"com.thesamet.scalapb" %% "scalapb-json4s" % "0.7.0",
"com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf",
"com.sksamuel.elastic4s" %% "elastic4s-core" % elastic4sVersion,
"com.sksamuel.elastic4s" %% "elastic4s-http" % elastic4sVersion,
"com.sksamuel.elastic4s" %% "elastic4s-testkit" % elastic4sVersion % "test",
"com.sksamuel.elastic4s" %% "elastic4s-embedded" % elastic4sVersion % "test",
"com.sksamuel.elastic4s" %% "elastic4s-json4s" % elastic4sVersion,
"net.ruippeixotog" %% "scala-scraper" % "2.1.0",
"com.typesafe.akka" %% "akka-http-spray-json" % "10.1.2",
"org.scalaj" %% "scalaj-http" % "2.4.0"
)
/**********/
/* DOCKER */
/**********/
import NativePackagerHelper._
enablePlugins(JavaAppPackaging, DockerPlugin)
packageName in Docker := "flagship-178000/arch"
version in Docker := version.value
dockerExposedPorts := List(2724)
dockerLabels := Map("maintainer" -> "15springle@gmail.com")
dockerBaseImage := "openjdk"
dockerRepository := Some("us.gcr.io")
defaultLinuxInstallLocation in Docker := "/usr/local"
daemonUser in Docker := "daemon"
mappings in Universal ++= directory( baseDirectory.value / "src" / "main" / "resources" )
javaOptions in Universal ++= Seq(
"-Dlog4j.configuration=file:/usr/local/etc/log4j.properties"
)