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

Dependency check fails on lower-case formats #312

Closed
arjopoldervaart opened this issue Jan 19, 2023 · 4 comments · Fixed by #324
Closed

Dependency check fails on lower-case formats #312

arjopoldervaart opened this issue Jan 19, 2023 · 4 comments · Fixed by #324

Comments

@arjopoldervaart
Copy link

We get:

Execution failed for task ':common-workflow-actions-ear:dependencyCheckAnalyze'.
> No enum constant org.owasp.dependencycheck.reporting.ReportGenerator.Format.csv

when we run our Gradle builds with version 8.0.1.

Our config is:

dependencyCheck {
    failBuildOnCVSS=0
    formats=['csv', 'html']
    suppressionFiles = ["${rootDir}/config/owasp/suppression.xml"]
}

When we change this to upper case or revert to version 7.4.4 the build runs.
I read in the documentation that the formats now have to match the enums exactly, but is it possible to ignore case? This impacts all our 100+ builds.

Kind regards, Arjo

@arjopoldervaart
Copy link
Author

Hi,

Can you please provide an update? Can this be fixed or do we need to update all our repositories?

@jeremylong
Copy link
Collaborator

This happened when I added @groovy.transform.CompileStatic to most classes/methods in the plugin. I'll submit a PR fixing this shortly.

@jeremylong
Copy link
Collaborator

Fix will be included in the next release.

@arjopoldervaart
Copy link
Author

Hi Jeremy,

Thanks a lot! This saves us a lot of work!

Kind regards, Arjo

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

Successfully merging a pull request may close this issue.

2 participants