Java Gradle SLF4J红移JDBC冲突

Java Gradle SLF4J红移JDBC冲突,java,gradle,jdbc,amazon-redshift,Java,Gradle,Jdbc,Amazon Redshift,我需要在gradle中更新JDBC红移驱动程序的版本,1.3X似乎存在以下问题: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:~/.gradle/caches/modules-2/files-2.1/com.amazon.redshift/redshift-jdbc42/1.2.37.1061/daad21f8637b6ccd2b86307a4f17e1e215df73

我需要在gradle中更新JDBC红移驱动程序的版本,1.3X似乎存在以下问题:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:~/.gradle/caches/modules-2/files-2.1/com.amazon.redshift/redshift-jdbc42/1.2.37.1061/daad21f8637b6ccd2b86307a4f17e1e215df7365/redshift-jdbc42-1.2.37.1061.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:~/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-classic/1.2.3/7c4f3c474fb2c041d8028740440937705ebb473a/logback-classic-1.2.3.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]

我可以在全局范围内排除
ch.qos.logback/logback classic
,但我想知道是否有更好的方法来解决这个问题,因为我宁愿禁用
com.amazon.redshift/redshift-jdbc42

版本1.2.34.1058中的意外重复记录器。您可以使用以下任何版本,而无需使用多个SLF4J绑定


我希望这能有所帮助

你应该向Amazon抱怨:
org.slf4j.impl.StaticLoggerBinder
的实现不属于JDBC驱动程序实现。这是肯定的,但在它们开始遵循约定之前,我想知道是否有一些解决方法,这不完全是因为我需要“某些多线程环境中的PreparedStatement参数没有正确填充。”1.2.32中的错误修复程序,根据我看到的情况,您不能直接在Gradle中使用它。它也不是依赖项,如果是的话,一切都会很好。