Skip to content

Commit b6bb7a0

Browse files
committed
Update arg name to match dependency check docs
1 parent 8c7df99 commit b6bb7a0

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export NVD_API_KEY=YOUR_KEY
6464
Or 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

src/main/java/uk/gov/hmcts/tools/DependencyCheckSetup.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)