Tasks
| Task |
Description |
| dependencyCheck |
Runs dependency-check against the project and generates a report. |
| dependencyCheckUpdate |
Updates the local cache of the NVD data from NIST. |
| dependencyCheckPurge |
Deletes the local copy of the NVD. This is used to force a refresh of the data. |
Configuration: dependencyCheckUpdate
The following properties can be configured for the dependencyCheckUpdate task:
| Property |
Description |
Default Value |
| cveValidForHours |
Sets the number of hours to wait before checking for new updates from the NVD. |
4 |
Example
dependencyCheckUpdate {
cveValidForHours=1
}
Proxy Configuration
| Property |
Description |
Default Value |
| server |
The proxy server. |
|
| port |
The proxy port. |
|
| username |
Defines the proxy user name. |
|
| password |
Defines the proxy password. |
|
| connectionTimeout |
The URL Connection Timeout. |
|
Example
dependencyCheckUpdate {
proxy {
server=some.proxy.server
port=8989
}
}
Advanced Configuration
The following properties can be configured in the dependencyCheck task. However, they are less frequently changed. One exception may be the cvedUrl properties, which can be used to host a mirror of the NVD within an enterprise environment. Note, if ANY of the cve configuration group are set - they should all be set to ensure things work as expected.
Example
dependencyCheckUpdate {
data {
directory='d:/nvd'
}
}