Comments (5)
@pankajrc11 6.0.2 is the latest, can you try that one?
from spotbugs-gradle-plugin.
from spotbugs-gradle-plugin.
I am using latest version 6.0.0-beta.2 with java 8 still getting now getting below error
Task :spotbugsMain FAILED
java.lang.NoClassDefFoundError: org/dom4j/DocumentException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: org.dom4j.DocumentException
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
- What went wrong:
Execution failed for task ':spotbugsMain'.
A failure occurred while executing com.github.spotbugs.snom.internal.SpotBugsRunnerForHybrid$SpotBugsExecutor
Verification failed: SpotBugs ended with exit code 1.
- Try:
from spotbugs-gradle-plugin.
- To support Android developers, v6 now requires Java 11 or later. It is OK to run SpotBugs itself on Java8 (by jvmtoolchain), but make sure the Gradle itself is running on Java 11 or later.
- Make sure your project has
dom4j.jar
in its classpath. Generally it should be introduced by SpotBugs, but your build script may exclude them explicitly.
from spotbugs-gradle-plugin.
I have the same error, tested with spotbugs 6.0.17
The stacktrace is:
Caused by: org.gradle.api.GradleException: Verification failed: SpotBugs ended with exit code 1.
at com.github.spotbugs.snom.internal.SpotBugsRunnerForHybrid$SpotBugsExecutor.execute(SpotBugsRunnerForHybrid.kt:125)
at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
I am using Java 21. Unfortunately, I can't find any further error information.
from spotbugs-gradle-plugin.
Related Issues (20)
- Replace depreated `BaseVariant` usages
- Plugin does not run on JDK8 HOT 1
- Reports not created for cached task HOT 2
- Groovy valueOf(String) for effort and reportLevel not working HOT 2
- Reports not being created HOT 1
- Configuration Cache compatibilities
- Spotbugs fails to run appropriately when space is present in project path
- GHA Build issues Windows
- How to disable an specific check across the entire project? HOT 1
- Spotbug task fails on CI with error "java.io.IOException: error=7, Argument list too long" HOT 5
- Spotbugs runner failing to run because of long command line arguments
- Gradle 8.8 Deprecation - Configuration.files() HOT 2
- We do not need to release for project-used dependencies. HOT 5
- NoSuchMethodError due to wrong commons-lang3 version when using plugin HOT 2
- false possitive on "Possible null pointer dereference of null" on lateinit var
- Document Gradle configuration with creating reports HOT 1
- How to generate Baseline file?
- toolVersion property is not considered input for cache/up-to-date checks
- Why do we have gradle 8.1 in github action files
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 spotbugs-gradle-plugin.