-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
69 lines (57 loc) · 2.36 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
65
66
67
68
69
name := "delphi-webapi"
version := "0.9.5.1"
scalaVersion := "2.13.1"
val akkaVersion = "2.6.1"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion
)
val akkaHttpVersion = "10.1.10"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion
)
//Including http client for elastic4s
libraryDependencies += "org.apache.httpcomponents" % "httpclient" % "4.5.9"
val elastic4sVersion = "6.7.4"
libraryDependencies ++= Seq(
"com.sksamuel.elastic4s" %% "elastic4s-core" % elastic4sVersion,
//Excluding default 4.5.2 due to https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEHTTPCOMPONENTS-31517
"com.sksamuel.elastic4s" %% "elastic4s-http" % elastic4sVersion exclude("org.apache.httpcomponents", "httpclient"),
"com.sksamuel.elastic4s" %% "elastic4s-http-streams" % elastic4sVersion,
)
libraryDependencies += "de.upb.cs.swt.delphi" %% "delphi-core" % "0.9.2"
libraryDependencies += "com.pauldijou" %% "jwt-core" % "4.2.0"
libraryDependencies += "org.parboiled" %% "parboiled" % "2.1.8"
libraryDependencies += "io.spray" %% "spray-json" % "1.3.5"
libraryDependencies += "org.scalactic" %% "scalactic" % "3.1.0"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.1.0" % "it,test"
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.2.3" % Runtime
lazy val webapi = (project in file(".")).
//https://www.scala-sbt.org/1.x/docs/Testing.html
configs(IntegrationTest).
settings(
Defaults.itSettings,
).
enablePlugins(JavaAppPackaging).
enablePlugins(DockerPlugin).
enablePlugins(ScalastylePlugin).
settings(
dockerBaseImage := "openjdk:jre-alpine"
).
enablePlugins(AshScriptPlugin).
enablePlugins(BuildInfoPlugin).
settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "de.upb.cs.swt.delphi.webapi"
)
scalastyleConfig := baseDirectory.value / "project" / "scalastyle-config.xml"
// Pinning secure versions of insecure transitive libraryDependencies
// Please update when updating dependencies above (including Play plugin)
libraryDependencies ++= Seq(
"com.fasterxml.jackson.core" % "jackson-databind" % "2.10.1"
)
trapExit := false
fork := true
connectInput := true