Back to Dependencycheck

Configuration Purge

src/site/markdown/dependency-check-gradle/configuration-purge.md

12.2.22.2 KB
Original Source

Tasks

TaskDescription
dependencyCheckAnalyzeRuns dependency-check against the project and generates a report.
dependencyCheckAggregateRuns dependency-check against a multi-project build and generates a report.
dependencyCheckUpdateUpdates the local cache of the NVD data from NIST.
dependencyCheckPurgeDeletes the local copy of the NVD. This is used to force a refresh of the data.

Configuration

groovy
buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'org.owasp:dependency-check-gradle:${project.version}'
    }
}
apply plugin: 'org.owasp.dependencycheck'
bash
$ gradle dependencyCheckPurge
PropertyDescriptionDefault Value
failOnErrorFails the build if an error occurs during the dependency-check analysis.true

Example

groovy
dependencyCheck {
    failOnError = true
}

Advanced Configuration

The following properties can be configured in the dependencyCheckPurge task. However, they are less frequently changed.

Config GroupPropertyDescriptionDefault Value
datadirectorySets the data directory to hold SQL CVEs contents. This should generally not be changed. 

Example

groovy
dependencyCheck {
    data.directory = 'd:/nvd'
}