I have a third party dependency in my play project. That third party library has eventual dependency ( not direct ) on an slf4j implementation.
I am getting duplicate binding error for slf4j.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:~/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/~/.ivy2/cache/com.orgname.platform/platform-logging-client/jars/platform-logging-client-2.5.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
I tried following things but can get rid of the error.
"com.orgname.platform" % "platform-metric-client" % "1.0.4" excludeAll(
ExclusionRule(organization = "org.slf4j"))
I also tried following exclusion
"com.orgname.platform" % "platform-metric-client" % "1.0.4" exclude("org.slf4j","slf4j-jdk14)
and also this one
"com.orgname.platform" % "platform-metric-client" % "1.0.4" exclude("org.slf4j","slf4j-log4j12)
Since I was not able to remove the slf4j from third party dependency I, tired to remove the play dependency on slf4j, by modifying projcts/plugin.sbt
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.6" exclude("org.slf4j", "slf4j-simple"))
How should I go about getting rid of this warning. how does this warning impact the logging? Which logging implementation would be used the Scala implementation?