Skip to content

Commit e553277

Browse files
authored
docs: document multiple configurations for gradle (#8111)
1 parent 3adb7f5 commit e553277

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/site/markdown/dependency-check-gradle/index.md.vm

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,29 @@ and [dependencyCheckPurge](configuration-purge.html). Please see each tasks conf
5050

5151
More information can be found in the [GitHub repository][github].
5252

53+
$H$H$H Multiple Configurations
54+
55+
Some projects may require multiple dependency-check configurations. This is supported by registering multiple tasks:
56+
57+
```groovy
58+
plugins {
59+
id 'java'
60+
id 'org.owasp.dependencycheck' version '12.1.5'
61+
}
62+
63+
tasks.register('dependencyCheckRelease', org.owasp.dependencycheck.gradle.tasks.Analyze) {
64+
dependencyCheck {
65+
failBuildOnCVSS = 9.0
66+
}
67+
}
68+
69+
tasks.register('dependencyCheckCI', org.owasp.dependencycheck.gradle.tasks.Analyze) {
70+
dependencyCheck {
71+
failBuildOnCVSS = 3.0
72+
}
73+
}
74+
```
75+
5376
License
5477
-------------------
5578

0 commit comments

Comments
 (0)