Dependency problem driving me mad

Hello everyone,

using SBT 1.5.2
Whenever I run the play project i get an error:
java.lang.ClassCastException: org.slf4j.impl.SimpleLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerContext

It is caused by this dependency:
"io.swagger" % "swagger-codegen-cli" % "2.4.19"
Because removing it ( or adding % provided) resolves the error.
However, I need the dependency.

I checked swagger-codegen-cli’s dependencies and it shows this in its POM


How to fix ithis? I tried changing the dependency to
"io.swagger" % "swagger-codegen-cli" % "2.4.19" exclude("org.slf4j", "slf4j-simple")
but that didnt work either.

Any help appreciated!

Ps not sure if I posted in the right place, feel free to move it to the correct one if needed…