Giter VIP home page Giter VIP logo

Comments (2)

xvik avatar xvik commented on June 25, 2024

This looks like spotbugs/spotbugs-gradle-plugin#11

Spotbugs plugin slf4j-simple transitive dependency version must be different than slf4 gradle version (leading to java.util.ServiceConfigurationError: org.slf4j.spi.SLF4JServiceProvider: org.slf4j.simple.SimpleServiceProvider not a subtype)

The simplest workaround is to exclude this dependency:

configure(actualSubprojects) {
    apply plugin: 'java'
    ...

    afterEvaluate {
        configurations.spotbugs { exclude module: 'slf4j-simple' }
    }

afterEvaluate is required because spotbugs plugin activation is delayed

The downside is absence of spotbugs logs:

SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details.

Everything was working with quality plugin 3.4.0 because it was using spotbugs plugin 1.6.5 and 4.0.0 use 2.0.1.
slf4j-simple dependency was added in 1.6.10 and all spotbugs plugin versions after it also affected

Ideally, this must be investigated further to propose more correct slf4j version resolution instead of current, but I don't have much time now for it, so I propose (for now) to keep this issue opened for anyone else facing a similar problem.

from gradle-quality-plugin.

mduft avatar mduft commented on June 25, 2024

This works, nice, thanks :) For me this is good enough for now...

from gradle-quality-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.