@@ -5,25 +5,29 @@ version := "1.0.0-SNAPSHOT"
55scalaVersion := " 2.12.4"
66
77val akkaVersion = " 2.5.16"
8- libraryDependencies ++= Seq (
8+ libraryDependencies ++= Seq (
99 " com.typesafe.akka" %% " akka-stream" % akkaVersion,
1010 " com.typesafe.akka" %% " akka-slf4j" % akkaVersion
1111)
1212
1313val akkaHttpVersion = " 10.1.5"
14- libraryDependencies ++= Seq (
14+ libraryDependencies ++= Seq (
1515 " com.typesafe.akka" %% " akka-http" % akkaHttpVersion,
1616 " com.typesafe.akka" %% " akka-http-testkit" % akkaHttpVersion,
1717 " com.typesafe.akka" %% " akka-http-spray-json" % akkaHttpVersion
1818)
19+ // Including http client for elastic4s
20+ libraryDependencies += " org.apache.httpcomponents" % " httpclient" % " 4.5.3"
1921
2022val elastic4sVersion = " 6.3.8"
2123libraryDependencies ++= Seq (
2224 " com.sksamuel.elastic4s" %% " elastic4s-core" % elastic4sVersion,
23- " com.sksamuel.elastic4s" %% " elastic4s-http" % elastic4sVersion,
25+ // Excluding default 4.5.2 due to https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEHTTPCOMPONENTS-31517
26+ " com.sksamuel.elastic4s" %% " elastic4s-http" % elastic4sVersion exclude(" org.apache.httpcomponents" , " httpclient" ),
2427 " com.sksamuel.elastic4s" %% " elastic4s-http-streams" % elastic4sVersion,
2528)
2629
30+
2731libraryDependencies += " com.pauldijou" %% " jwt-core" % " 1.0.0"
2832
2933libraryDependencies += " org.parboiled" %% " parboiled" % " 2.1.4"
@@ -34,10 +38,10 @@ libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.2.3" % Runtime
3438
3539lazy val webapi = (project in file(" ." )).
3640 // https://www.scala-sbt.org/1.x/docs/Testing.html
37- configs(IntegrationTest ).
41+ configs(IntegrationTest ).
3842 settings(
3943 Defaults .itSettings,
40- ).
44+ ).
4145 enablePlugins(JavaAppPackaging ).
4246 enablePlugins(DockerPlugin ).
4347 enablePlugins(ScalastylePlugin ).
0 commit comments