| Type | Name and description |
|---|---|
java.util.List<java.lang.String> |
analyzedTypesThe artifact types that will be analyzed in the gradle build. |
AnalyzerExtension |
analyzersConfiguration for the analyzers. |
java.lang.Boolean |
autoUpdateSets whether auto-updating of the NVD CVE/CPE data is enabled. |
CacheExtension |
cacheThe configuration extension for cache settings. |
CveExtension |
cveThe configuration extension that defines the location of the NVD CVE data. |
java.lang.Integer |
cveValidForHoursThe number of hours to wait before checking for additional updates from the NVD. |
DataExtension |
dataThe configuration extension for data related configuration options. |
java.lang.Float |
failBuildOnCVSSSpecifies if the build should be failed if a CVSS score above a specified level is identified. |
java.lang.Boolean |
failOnErrorWhether the plugin should fail when errors occur. |
Format |
formatThe report format to be generated (HTML, XML, CSV, JUNIT, SARIF, ALL). |
java.util.List<Format> |
formatsThe list of formats to generate to report (HTML, XML, CSV, JUNIT, SARIF, ALL). |
java.lang.String |
hintsFileThe path to the hints file. |
java.lang.Float |
junitFailOnCVSSSpecifies the CVSS score that should be considered a failure when generating a JUNIT formatted report. |
java.lang.String |
outputDirectoryThe directory where the reports will be written. |
org.gradle.api.Project |
project |
ProxyExtension |
proxyThe configuration extension for proxy settings. |
java.lang.Boolean |
quickQueryTimestampSet to false if the proxy does not support HEAD requests. |
java.util.List<java.lang.String> |
scanConfigurationsNames of the configurations to scan. |
java.util.List<java.lang.String> |
scanProjectsPaths of the projects to scan. |
java.util.List<java.io.File> |
scanSetA set of files or folders to scan. |
java.lang.Boolean |
showSummaryDisplays a summary of the findings. |
java.lang.Boolean |
skipWhether or not to skip the execution of dependency-check. |
java.util.List<java.lang.String> |
skipConfigurationsNames of the configurations to skip when scanning. |
java.util.List<java.lang.String> |
skipGroupsGroup prefixes of the modules to skip when scanning. |
java.util.List<java.lang.String> |
skipProjectsPaths of the projects to skip when scanning. |
java.lang.Boolean |
skipTestGroupsWhen set to true configurations that are considered a test configuration will not be included in the analysis. |
SlackExtension |
slackThe configuration extension for proxy settings. |
java.lang.String |
suppressionFileThe path to the suppression file. |
java.util.List<java.lang.String> |
suppressionFilesThe list of paths to suppression files. |
| Constructor and description |
|---|
DependencyCheckExtension
(org.gradle.api.Project project) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Object |
analyzers(groovy.lang.Closure configClosure)Allows programmatic configuration of the analyzer extension |
|
java.lang.Object |
cache(groovy.lang.Closure configClosure)Allows programmatic configuration of the cache extension |
|
java.lang.Object |
cve(groovy.lang.Closure configClosure)Allows programmatic configuration of the cve extension |
|
java.lang.Object |
data(groovy.lang.Closure configClosure)Allows programmatic configuration of the data extension |
|
java.lang.Object |
proxy(groovy.lang.Closure configClosure)Allows programmatic configuration of the proxy extension |
|
java.lang.Object |
slack(groovy.lang.Closure configClosure)Allows programmatic configuration of the slack extension |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The artifact types that will be analyzed in the gradle build.
Configuration for the analyzers.
Sets whether auto-updating of the NVD CVE/CPE data is enabled.
The configuration extension for cache settings.
The configuration extension that defines the location of the NVD CVE data.
The number of hours to wait before checking for additional updates from the NVD.
The configuration extension for data related configuration options.
Specifies if the build should be failed if a CVSS score above a specified level is identified. The default is 11 which means since the CVSS scores are 0-10, by default the build will never fail.
Whether the plugin should fail when errors occur.
The report format to be generated (HTML, XML, CSV, JUNIT, SARIF, ALL). This configuration option has no affect if using this within the Site plugin unless the externalReport is set to true. The default is HTML.
The list of formats to generate to report (HTML, XML, CSV, JUNIT, SARIF, ALL).
The path to the hints file.
Specifies the CVSS score that should be considered a failure when generating a JUNIT formatted report. The default is 0.0 which means all identified vulnerabilities would be considered a failure.
The directory where the reports will be written. Defaults to 'build/reports'.
The configuration extension for proxy settings.
Set to false if the proxy does not support HEAD requests. The default is true.
Names of the configurations to scan. This is mutually exclusive with the skipConfigurations property.
Paths of the projects to scan. This is mutually exclusive with the skipProjects property.
A set of files or folders to scan.
Displays a summary of the findings. Defaults to true.
Whether or not to skip the execution of dependency-check.
Names of the configurations to skip when scanning. This is mutually exclusive with the scanConfigurations property.
Group prefixes of the modules to skip when scanning. The 'project' prefix can be used to skip all internal dependencies from multi-project build.
Paths of the projects to skip when scanning. This is mutually exclusive with the scanProjects property.
When set to true configurations that are considered a test configuration will not be included in the analysis. A configuration is considered a test configuration if and only if any of the following conditions holds:
The configuration extension for proxy settings.
The path to the suppression file.
The list of paths to suppression files.
Allows programmatic configuration of the analyzer extension
configClosure - the closure to configure the analyzers extensionAllows programmatic configuration of the cache extension
configClosure - the closure to configure the cache extensionAllows programmatic configuration of the cve extension
configClosure - the closure to configure the cve extensionAllows programmatic configuration of the data extension
configClosure - the closure to configure the data extensionAllows programmatic configuration of the proxy extension
configClosure - the closure to configure the proxy extensionAllows programmatic configuration of the slack extension
configClosure - the closure to configure the slack extensionGroovy Documentation