diff --git a/README.md b/README.md index f43de7e9828..db68da84001 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,26 @@ issues arise you may need to purge the database: - maven: `mvn org.owasp:dependency-check-maven:9.0.0:purge` - cli: `dependency-check.sh --purge` +#### Gradle build Environment + +With 9.0.0 users may encounter issues with `NoSuchMethodError` exceptions due to +dependency resolution. If you encounter this issue you will need to pin some of +the transitive dependencies of dependency-check to specific versions. For example: + +/buildSrc/build.gradle +```groovy +dependencies { + constraints { + // org.owasp.dependencycheck needs at least this version of jackson. Other plugins pull in older versions.. + add("implementation", "com.fasterxml.jackson:jackson-bom:2.16.0") + + // org.owasp.dependencycheck needs these versions. Other plugins pull in older versions.. + add("implementation", "org.apache.commons:commons-lang3:3.14.0") + add("implementation", "org.apache.commons:commons-text:1.11.0") + } +} +``` + ## Requirements ### Java Version