bmuschko / gradle-cargo-plugin

Gradle plugin that provides deployment capabilities to local and remote containers via Cargo
Apache License 2.0
258 stars 61 forks source link

Class path contains multiple SLF4J bindings. #96

Closed johnthad closed 10 years ago

johnthad commented 10 years ago

I'm using SLF4J in my WAR. However Gradle 2.0 includes a jar ('ch.qos.logback:logback-classic:1.0.13') with the same class (see below). Is there a way to tell Jetty to ignore or exclude the JAR or class in $GRADLE_HOME?

:jettyDraftWar SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/opt/gradle-2.0/lib/logback-classic-1.0.13.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/Users/thad/experimental/mobile/build/tmp/jettyDraftWar/webapp/WEB-INF/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]

johnthad commented 10 years ago

Sorry, I see someone raised this (#45), and that it's been closed as a Gradle problem.