-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Report writing fails due to missing class: StringEscapeUtils #6667
Comments
The stacktrace from the gradle scan is:
|
Looks like you have an incompatible version of apache commons-text on the classpath of your Gradle build that is overriding the transitive dependency of the Gradle plugin. |
FYI dependencyCheck expects version 1.11.0 on the classpath Based on your gist (the link you have put in was wrong, but I managed to uncover the gist based on your github account) I suspect that Gradle puts version 1.9.0 on the classpath |
Which classpath is the dependency-check using? |
|
Ah, got it thanks. It looks like the nebula plugin was causing the issues. |
Describe the bug
When running dependencyCheckAnalyze from gradle in our project, the report writing fails and we see the following in the gradle task output:
The debug log output isn't helpul in giving any more information. However, running ./gradlew dependencyCheckAnalyze --scan does show the stacktrace and a little more information which seems to indicate that the (Apache Commons) StringEscapeUtils class isn't found.
The dependency-check report is partially written and ends with:
Version of dependency-check used
The problem occurs using version 9.1.0 of the gradle plugin.
Log file
https://gist.github.com/wandisco-trev/a88fc49683ad68e2de4d22c0e0b1e175
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the report to be generated.
Additional context
Using gradle 7.6.4 although the problem is also reproducible on gradle 8.5.
Sometimes it manifests as the inability to find the Range.of(Comparable, Comparable) method.
The text was updated successfully, but these errors were encountered: