Skip to content

Commit

Permalink
Add Dependency-Check gradle plugin to the platform modules (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
besidev authored May 15, 2024
1 parent 006e7f0 commit 8319d7e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand All @@ -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"
Expand Down Expand Up @@ -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"),
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8319d7e

Please sign in to comment.