File tree Expand file tree Collapse file tree
src/main/java/uk/gov/hmcts/tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export NVD_API_KEY=YOUR_KEY
6464Or via a Gradle property:
6565
6666``` bash
67- ./gradlew dependencyCheckAggregate -PdependencyCheck.nvd .apiKey=YOUR_KEY
67+ ./gradlew dependencyCheckAggregate -Pnvd .apiKey=YOUR_KEY
6868```
6969
7070### Suppressions
Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ public static void apply(Project project) {
3939
4040 Project root = project .getRootProject ();
4141
42- // Gradle property: -PdependencyCheck.nvd .apiKey=...
43- String apiKey = (String ) root .findProperty ("dependencyCheck. nvd.apiKey" );
42+ // Gradle property: -Pnvd .apiKey=...
43+ String apiKey = (String ) root .findProperty ("nvd.apiKey" );
4444
45- // JVM system property: -DdependencyCheck.nvd .apiKey=...
45+ // JVM system property: -Dnvd .apiKey=...
4646 if (apiKey == null || apiKey .isBlank ()) {
47- apiKey = System .getProperty ("dependencyCheck. nvd.apiKey" );
47+ apiKey = System .getProperty ("nvd.apiKey" );
4848 }
4949
5050 // Environment variable
You can’t perform that action at this time.
0 commit comments