Skip to content

Commit 7be5bf1

Browse files
committed
Slf4j fun
1 parent 70e3ca7 commit 7be5bf1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

project/Dependencies.scala

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ object Dependencies {
3939
val log4jOverSlf4jVersion = slf4jVersion
4040
val jclOverSlf4jVersion = slf4jVersion
4141

42-
// Later versions bump slf4j-api past 2.x
42+
// Akka 2.9 expects Slf4j 1.x
4343
// https://github.com/akka/akka/blob/main/project/Dependencies.scala#L28
44-
val LogbackClassicVersion = "1.2.13"
44+
val LogbackWithSlf4jV1 = "1.2.13"
45+
val LogbackWithSlf4jV2 = "1.5.3"
4546

4647
val Common = Seq(
4748
// These libraries are added to all modules via the `Common` AutoPlugin
@@ -56,7 +57,7 @@ object Dependencies {
5657
"com.typesafe.akka" %% "akka-stream" % AkkaVersion,
5758
"com.typesafe.akka" %% "akka-stream-testkit" % AkkaVersion,
5859
"com.typesafe.akka" %% "akka-slf4j" % AkkaVersion,
59-
"ch.qos.logback" % "logback-classic" % LogbackClassicVersion,
60+
"ch.qos.logback" % "logback-classic" % LogbackWithSlf4jV1,
6061
"org.scalatest" %% "scalatest" % ScalaTestVersion,
6162
"com.dimafeng" %% "testcontainers-scala-scalatest" % TestContainersScalaTestVersion,
6263
"com.novocode" % "junit-interface" % "0.11", // BSD-style
@@ -255,7 +256,8 @@ object Dependencies {
255256
libraryDependencies ++= Seq(
256257
"com.typesafe.akka" %% "akka-http" % AkkaHttpVersion,
257258
"com.typesafe.akka" %% "akka-http-spray-json" % AkkaHttpVersion,
258-
"com.github.tomakehurst" % "wiremock" % "3.0.1" % Test // ApacheV2
259+
"com.github.tomakehurst" % "wiremock" % "3.0.1" % Test,
260+
"ch.qos.logback" % "logback-classic" % LogbackWithSlf4jV2 % Test
259261
) ++ Mockito
260262
)
261263

@@ -339,8 +341,7 @@ object Dependencies {
339341
"jakarta.jms" % "jakarta.jms-api" % "3.1.0", // Eclipse Public License 2.0 + + GPLv2
340342
"org.apache.activemq" % "artemis-jakarta-server" % "2.33.0" % Test, // ApacheV2
341343
"org.apache.activemq" % "artemis-jakarta-client" % "2.33.0" % Test, // ApacheV2
342-
// slf4j-api 2.0.9 via activemq-client
343-
"ch.qos.logback" % "logback-classic" % "1.4.14" % Test
344+
"ch.qos.logback" % "logback-classic" % LogbackWithSlf4jV2 % Test
344345
) ++ Mockito
345346
)
346347

0 commit comments

Comments
 (0)