Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got warnings after updating to 1.21.0: Class path contains multiple SLF4J bindings #5265

Closed
fikr4n opened this issue Sep 1, 2022 · 2 comments
Labels

Comments

@fikr4n
Copy link

fikr4n commented Sep 1, 2022

Expected Behavior

There should be no warning.

Observed Behavior

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/user/.gradle/caches/modules-2/files-2.1/io.gitlab.arturbosch.detekt/detekt-formatting/1.21.0/b7e14d2040b8c6092227a0056223e9f36cc54a6/detekt-formatting-1.21.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/user/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-nop/1.7.36/a3c1eb685d59414527faa93623acae311c184032/slf4j-nop-1.7.36.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.helpers.NOPLoggerFactory]

Steps to Reproduce

Run ./gradlew detekt where the config is like below:

task detekt(type: JavaExec, group: "verification") {
    mainClass.set("io.gitlab.arturbosch.detekt.cli.Main")
    classpath = configurations.detekt
    def params = ['-i', ..., '-c', ..., '-r', ..., '--build-upon-default-config']
    args(params)
}

Context

Simply running detekt.

Your Environment

  • Version of detekt used: 1.21.0
  • Version of Gradle used (if applicable): 7.2.0
  • Operating System and version: Ubuntu 22.04
@fikr4n fikr4n added the bug label Sep 1, 2022
@3flex
Copy link
Member

3flex commented Sep 1, 2022

This should be fixed in the next release by #5153

@3flex 3flex closed this as completed Sep 1, 2022
@fikr4n
Copy link
Author

fikr4n commented Sep 5, 2022

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants