Search code examples
scaladependenciessbt

com.typesafe.scala-logging#scala-logging-slf4j_2.12;2.1.2: not found


Why do I get these UNRESOLVED DEPENDENCIES errors

My build.sbt has the following:

libraryDependencies ++= Seq(
....
"com.typesafe.scala-logging" %% "scala-logging-slf4j" % "2.1.2"
)

I also tried

libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging-slf4j" % "2.1.2"

to see if that would make a difference. With %% and % after group id. And I tried with and without

resolvers += "slf4j repo" at "https://mvnrepository.com/artifact/com.typesafe.scala-logging/scala-logging-slf4j",

What am I missing, what am I doing wrong? Please help!


Solution

  • For a while scala-logging assumes that you always want to use slf4j - so just remove that dependency and fetch only

    libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.9.2"
    

    it will work for Scala 2.11, 2.12 and 2.13