From 8319d7e61c11f7a02104a3448f5e9973847b7dd7 Mon Sep 17 00:00:00 2001 From: Besmir Beqiri Date: Wed, 15 May 2024 10:43:47 +0200 Subject: [PATCH] Add `Dependency-Check` gradle plugin to the platform modules (#40) --- build.gradle | 13 +++++++++++++ gradle.properties | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index d3d1fae8..3eaa4cfb 100644 --- a/build.gradle +++ b/build.gradle @@ -10,6 +10,7 @@ buildscript { classpath "com.google.gradle:osdetector-gradle-plugin:$OSDETECTOR_PLUGIN_VERSION" classpath "org.openjfx:javafx-plugin:$JAVAFX_PLUGIN_VERSION" classpath "one.jpro:jpro-gradle-plugin:$JPRO_VERSION" + classpath "org.owasp:dependency-check-gradle:$DEPENDENCY_CHECK_PLUGIN_VERSION" } } @@ -32,6 +33,7 @@ subprojects { configure(subprojects.findAll { it.name != 'example' }) { apply plugin: 'java-library' apply plugin: 'org.openjfx.javafxplugin' + apply plugin: 'org.owasp.dependencycheck' javafx { version = "$JAVAFX_VERSION" @@ -65,6 +67,17 @@ configure(subprojects.findAll { it.name != 'example' }) { exceptionFormat "full" } } + + dependencyCheck { + autoUpdate = true + format = 'ALL' + + nvd { + apiKey = System.getenv("SANDEC_NVD_API_KEY") + } + + outputDirectory = layout.buildDirectory.dir("reports/dependency-check").get().asFile + } } configure([project("tree-showing"), project("jpro-auth:core"), project("jpro-auth:routing"), project("jpro-file"), diff --git a/gradle.properties b/gradle.properties index f76940d9..f29a5bc0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,7 +10,8 @@ SCENIC_VIEW_VERSION = 11.0.3-SNAPSHOT-FORK JAVAFX_PLUGIN_VERSION = 0.1.0 MODULE_PLUGIN_VERSION = 1.8.12 OSDETECTOR_PLUGIN_VERSION = 1.7.3 -ENSEMBLE_GRADLE_PLUGIN_VERSION=0.1.0-SNAPSHOT +ENSEMBLE_GRADLE_PLUGIN_VERSION = 0.1.0-SNAPSHOT +DEPENDENCY_CHECK_PLUGIN_VERSION = 9.1.0 JAVACPP_VERSION = 1.5.10 JAVACV_VERSION = 1.5.10