Skip to content

Commit bb7f7d6

Browse files
author
Hariharan Ramanathan
committed
Upgrading httpclient to 4.5.3
1 parent f7df876 commit bb7f7d6

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

build.sbt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,29 @@ version := "1.0.0-SNAPSHOT"
55
scalaVersion := "2.12.4"
66

77
val 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

1313
val 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

2022
val elastic4sVersion = "6.3.8"
2123
libraryDependencies ++= 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+
2731
libraryDependencies += "com.pauldijou" %% "jwt-core" % "1.0.0"
2832

2933
libraryDependencies += "org.parboiled" %% "parboiled" % "2.1.4"
@@ -34,10 +38,10 @@ libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.2.3" % Runtime
3438

3539
lazy 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

Comments
 (0)