Apache Lucene open-source search software
SOLR-11207: minor changes:
Dawid Weiss5ab59f59ac48
diff --git a/build.gradle b/build.gradleindex 1a4bdd0efb2..e4ceca222c4 100644--- a/build.gradle+++ b/build.gradle@@ -5,7 +5,7 @@ plugins {id "base"id "com.palantir.consistent-versions" version "1.14.0"id 'de.thetaphi.forbiddenapis' version '2.7' apply false- id "org.owasp.dependencycheck" version "5.2.4"+ id "org.owasp.dependencycheck" version "5.3.0"}// Project version and main properties. Applies to all projects.diff --git a/gradle/validation/owasp-dependency-check.gradle b/gradle/validation/owasp-dependency-check.gradleindex b47291cccd0..98b7cb0b95d 100644--- a/gradle/validation/owasp-dependency-check.gradle+++ b/gradle/validation/owasp-dependency-check.gradle@@ -1,17 +1,25 @@+// This adds OWASP vulnerability validation of project dependencies-// Not part of 'check' task by default, must be called explicitly, e.g. gradlew dependencyCheckAnalyze-// Start build with -Pvalidation.owasp.fail=true to fail build on owasp errors (CVSS >= 7)-// Start build with -Pvalidation.owasp.skip=true to skip OWASP checks during 'check' phase++// If -Pvalidation.owasp=true is set the validation will also run as part of the check task.configure(rootProject) {dependencyCheck {- // TODO: Flip this to true once the ist is empty- skip = !propertyOrDefault("validation.owasp", false).toBoolean()failBuildOnCVSS = propertyOrDefault("validation.owasp.threshold", 7) as Integerformats = ['HTML', 'JSON']- suppressionFile = 'gradle/validation/dependency-check/exclusions.xml'+ suppressionFile = rootProject.file('gradle/validation/owasp-dependency-check/exclusions.xml')}- // Included in 'check' but it won't do anything since 'skip' defaults to true (inverse of validation.owasp property)- check.dependsOn dependencyCheckAnalyze-}\ No newline at end of file+ task owasp() {+ group "Verification"+ description "Check project dependencies against OWASP vulnerability database."+ dependsOn dependencyCheckAggregate+ }++ // Unless explicitly enabled, do not attach owasp to check. It has a large download+ // footprint and takes a significant amount of time. This should be enabled for+ // nightly CI runs only, I think.+ if (propertyOrDefault("validation.owasp", false).toBoolean()) {+ check.dependsOn owasp+ }+}diff --git a/gradle/validation/dependency-check/exclusions.xml b/gradle/validation/owasp-dependency-check/exclusions.xmlsimilarity index 100%rename from gradle/validation/dependency-check/exclusions.xmlrename to gradle/validation/owasp-dependency-check/exclusions.xmldiff --git a/help/workflow.txt b/help/workflow.txtindex 46a9eb8e99a..7532d7ee9fe 100644--- a/help/workflow.txt+++ b/help/workflow.txt@@ -31,6 +31,10 @@ Put together Solr distribution:gradlew -p solr/packaging assemblels solr/packaging/build/solr-*++Other validation and checks+===========================+Generate a report of dependencies with known OWASP vulnerabilities:-gradlew -Pvalidation.owasp=true dependencyCheckAnalyze-open ./build/reports/dependency-check-report.html\ No newline at end of file+gradlew :dependencyCheckAnalyze+open ./build/reports/dependency-check-report.html