Gradle build failing in v6.1.1
See original GitHub issueDescribe the bug When attempting to run dependency check analyze using
./gradlew dependencyCheckAnalyze
there are 2 tasks that fail:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':deployment:dependencyCheckAnalyze'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:207)
•••
Caused by: java.lang.NoSuchMethodError: org.apache.commons.codec.digest.DigestUtils.<init>(Ljava/lang/String;)V
at org.owasp.dependencycheck.utils.Checksum.getChecksum(Checksum.java:101)
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':dependencyCheckAnalyze'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:207)
•••
Caused by: java.lang.NoSuchMethodError: org.apache.commons.codec.digest.DigestUtils.<init>(Ljava/lang/String;)V
at org.owasp.dependencycheck.utils.Checksum.getChecksum(Checksum.java:101)
Version of dependency-check used The problem occurs using version 6.1.1 of the gradle plugin
Log file When reporting errors, 99% of the time log file output is required. Please post the log file as a gist and provide a link in the new issue.
Output displayed above. Let me know if you need additional information on the issue.
To Reproduce Steps to reproduce the behavior:
- Run the ./gradlew command in CLI
- View output of 2 failed jobs in gradle output
Expected behavior The gradle build should not break.
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
upgrade gradle to v6.1.1 unable to find method - Stack Overflow
Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection ...
Read more >Troubleshooting builds - Gradle User Manual
If your Gradle build fails before running any tasks, you may be encountering problems with your network configuration. When Gradle is unable to...
Read more >Build.gradle always failed when testng dependency is added
Hi, As my tests were failed due to dependency with Text NG, i tried adding testng(with different versions) related URL in the dependency...
Read more >deprecated gradle features were used in this build making it ...
It's just a deprecation warning giving you a heads-up that once you DO UPGRADE to 7.0 your build will stop working. In other...
Read more >Gradle Docker Plugin User Guide & Examples - GitHub Pages
1.1. Benefits. There are various benefits for using this plugin: Seamless integration with the build tool Gradle and its DSL.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK, thanks Jeremy, so this should be right in next version 6.1.2, right? Update: forget it, I just realized your bugfix is already integrated to the next version 6.1.2, thanks Jeremy.
Jeremy, is there an specific version of common-codec that is required? Could an override to force an specific version fix this problem? We have the problem in some API’s with this version 6.1.1, but in others it’s working just fine. Here the output for the case where it’s not working, only where commons-codec is present, thanks.