Comments (2)
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.
This works, nice, thanks :) For me this is good enough for now...
from gradle-quality-plugin.
Related Issues (20)
- Check JUnit-Tests with separate rules HOT 4
- Configuring Spotbugs ReportLevel HOT 7
- Security vulnerability in dom4j HOT 1
- Failure with Gradle 6 HOT 5
- gradle 6: quality plugin breaks build because FindBugs has been removed HOT 2
- Support for Kotlin gradle DSL ? HOT 3
- plugin breaks gradle integration in IntelliJ IDEA 2020.1 EAP HOT 3
- build error with: Fatal error during transformation HOT 1
- 4.2.1 seems to break CodeNarc HOT 7
- Combining quality plugin with testsets plugin and build dashboard HOT 6
- Feature request: dependency checks for vulnerabilities HOT 1
- SpotBugs support is broken in Gradle 6.4 HOT 4
- Cannot suppress SpotBug warnings in generated code HOT 3
- Update CodeNarc to latest version (1.6.1) HOT 2
- Provide configDirectory property for Checkstyle plugin HOT 1
- Reporting enabled property deprecation warning HOT 1
- Update Spotbugs Gradle plugin to 5.0.13 HOT 2
- checkstyleMain task is failing with Gradle 8.0 upgrade HOT 2
- Update Spotbugs Gradle plugin to 5.1.4 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-quality-plugin.