forked from I-News-Pipeline-HTW-Berlin/HTTP-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
46 lines (34 loc) · 1.6 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
name := "inews-http-api"
organization := "de.htwBerlin.ai"
version := "0.1"
scalaVersion := "2.12.1"
val akkaVersion = "10.1.11"
val elastic4sVersion = "7.3.4"
resolvers ++= Seq("snapshots", "releases").map(Resolver.sonatypeRepo)
libraryDependencies ++= Seq(
/* Akka http */
"com.typesafe.akka" %% "akka-http" % akkaVersion,
"com.typesafe.akka" %% "akka-stream" % "2.6.1",
/* Akka http CORS (Cross Origin Resource Sharing) extension
this is need for the frontend, which runs on a different port, to access the API */
"ch.megard" %% "akka-http-cors" % "0.4.2",
/* JSON Serialization */
"com.typesafe.akka" %% "akka-http-spray-json" % akkaVersion,
"com.sksamuel.elastic4s" %% "elastic4s-core" % elastic4sVersion,
"com.sksamuel.elastic4s" %% "elastic4s-client-esjava" % elastic4sVersion, // default http client
/* authentication */
"com.jason-goodwin" %% "authentikat-jwt" % "0.4.5",
/* SLF4J backend, logback recommended by Akka docs */
/* https://stackoverflow.com/questions/42598459/failed-to-load-class-org-slf4j-impl-staticloggerbinder-message-error-from-slf4 */
"ch.qos.logback" % "logback-classic" % "1.1.3" % Runtime,
/* BCrypt for password */
"org.mindrot" % "jbcrypt" % "0.3m",
/* Official MongoDB Driver */
"org.mongodb.scala" %% "mongo-scala-driver" % "4.2.0"
)
// https://stackoverflow.com/a/39058507
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case PathList("reference.conf") => MergeStrategy.concat
case x => MergeStrategy.first
}