Skip to content

Commit 0fd56e2

Browse files
Update to latest version of owaspDependencyChecker and add properties for oss authentication (#1188)
1 parent f3d9b95 commit 0fd56e2

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

build.gradle

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ plugins {
1717
allprojects {
1818
if (project.hasProperty('enableOwaspDependencyCheck'))
1919
{
20-
// Comment in to enable the tasks for owasp dependency checking
2120
apply plugin: 'org.owasp.dependencycheck'
2221
dependencyCheck {
2322
outputDirectory = project.rootProject.layout.buildDirectory.file("reports/dependencyCheck/${project.path.replaceAll(':', '_').substring(1)}").get().asFile
@@ -32,6 +31,15 @@ allprojects {
3231
enabled = false
3332
}
3433
}
34+
if (project.hasProperty('ossIndexUsername') && project.hasProperty('ossIndexPassword'))
35+
{
36+
analyzers.ossIndex.username = project.property('ossIndexUsername')
37+
analyzers.ossIndex.password = project.property('ossIndexPassword');
38+
}
39+
else
40+
{
41+
analyzers.ossIndex.enabled = false
42+
}
3543
formats = ['HTML', 'JUNIT']
3644
skipConfigurations = ['dedupe', 'gwtCompileClasspath', 'gwtRuntimeClasspath', 'developmentOnly']
3745
skipProjects = [':server:testAutomation']

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ windowsProteomicsBinariesVersion=1.0
6060
artifactoryPluginVersion=5.2.5
6161
gradleNodePluginVersion=7.1.0
6262
gradlePluginsVersion=6.3.0
63-
owaspDependencyCheckPluginVersion=12.1.3
63+
owaspDependencyCheckPluginVersion=12.1.6
6464
versioningPluginVersion=1.1.2
6565

6666
# Versions of node and npm to use during the build. If set, these versions

0 commit comments

Comments
 (0)