Skip to content

Commit 9b506e5

Browse files
committed
upgrade dependency-check plugin and configure
1 parent ec8e282 commit 9b506e5

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ buildscript {
2929
jcenter()
3030
}
3131
dependencies {
32-
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.6'
33-
classpath 'org.owasp:dependency-check-gradle:4.0.2'
32+
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.10'
33+
classpath 'org.owasp:dependency-check-gradle:5.2.0'
3434
classpath 'com.github.jengelman.gradle.plugins:shadow:5.0.0'
3535
}
3636
}
@@ -87,5 +87,9 @@ allprojects {
8787
}
8888
}
8989

90+
wrapper {
91+
distributionType = Wrapper.DistributionType.ALL
92+
}
93+
9094
// endregion Root project script
9195

gradle/common-java.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@ tasks.withType(Checkstyle) {
4949
}
5050
}
5151

52+
dependencyCheck {
53+
def supFile = "${project.projectDir}/dependency-check-suppressions.xml"
54+
if (file(supFile).exists() && !Project.hasProperty('dependencyCheck.suppressions.skip')) {
55+
suppressionFiles += supFile
56+
}
57+
outputDirectory = "${project.buildDir}/reports/dependency-check"
58+
formats = ['HTML', 'JUNIT']
59+
skipConfigurations = ['mavenDeployer']
60+
cveValidForHours = 1
61+
failBuildOnCVSS = 0
62+
}
63+
5264
jacoco {
5365
toolVersion = "0.8.2"
5466
}

0 commit comments

Comments
 (0)