Skip to content

Commit

Permalink
Diligently remove transitive Slf4j 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ennru committed Mar 29, 2024
1 parent 7be5bf1 commit 3b54254
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ object Dependencies {
// Akka 2.9 expects Slf4j 1.x
// https://github.com/akka/akka/blob/main/project/Dependencies.scala#L28
val LogbackWithSlf4jV1 = "1.2.13"
val LogbackWithSlf4jV2 = "1.5.3"
val wiremock = ("com.github.tomakehurst" % "wiremock" % "3.0.1" % Test).exclude("org.slf4j", "slf4j-api")

val Common = Seq(
// These libraries are added to all modules via the `Common` AutoPlugin
Expand Down Expand Up @@ -256,8 +256,7 @@ object Dependencies {
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % AkkaHttpVersion,
"com.github.tomakehurst" % "wiremock" % "3.0.1" % Test,
"ch.qos.logback" % "logback-classic" % LogbackWithSlf4jV2 % Test
wiremock
) ++ Mockito
)

Expand Down Expand Up @@ -339,9 +338,8 @@ object Dependencies {
val JakartaJms = Seq(
libraryDependencies ++= Seq(
"jakarta.jms" % "jakarta.jms-api" % "3.1.0", // Eclipse Public License 2.0 + + GPLv2
"org.apache.activemq" % "artemis-jakarta-server" % "2.33.0" % Test, // ApacheV2
"org.apache.activemq" % "artemis-jakarta-client" % "2.33.0" % Test, // ApacheV2
"ch.qos.logback" % "logback-classic" % LogbackWithSlf4jV2 % Test
("org.apache.activemq" % "artemis-jakarta-server" % "2.33.0" % Test).exclude("org.slf4j", "slf4j-api"),
("org.apache.activemq" % "artemis-jakarta-client" % "2.33.0" % Test).exclude("org.slf4j", "slf4j-api")
) ++ Mockito
)

Expand Down Expand Up @@ -445,7 +443,7 @@ object Dependencies {
"software.amazon.awssdk" % "auth" % AwsSdk2Version,
// in-memory filesystem for file related tests
"com.google.jimfs" % "jimfs" % "1.2" % Test, // ApacheV2
"com.github.tomakehurst" % "wiremock-jre8" % "3.0.1" % Test // ApacheV2
wiremock
)
)

Expand All @@ -467,8 +465,8 @@ object Dependencies {
val SlickVersion = "3.5.0"
val Slick = Seq(
libraryDependencies ++= Seq(
"com.typesafe.slick" %% "slick" % SlickVersion, // BSD 2-clause "Simplified" License
"com.typesafe.slick" %% "slick-hikaricp" % SlickVersion, // BSD 2-clause "Simplified" License
("com.typesafe.slick" %% "slick" % SlickVersion).exclude("org.slf4j", "slf4j-api"),
("com.typesafe.slick" %% "slick-hikaricp" % SlickVersion).exclude("org.slf4j", "slf4j-api"),
"com.h2database" % "h2" % "2.1.214" % Test // Eclipse Public License 1.0
)
)
Expand Down

0 comments on commit 3b54254

Please sign in to comment.