Skip to content

Commit

Permalink
upgrade dependency-check plugin and configure
Browse files Browse the repository at this point in the history
  • Loading branch information
littleaj committed Aug 2, 2019
1 parent ec8e282 commit 9b506e5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.6'
classpath 'org.owasp:dependency-check-gradle:4.0.2'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.10'
classpath 'org.owasp:dependency-check-gradle:5.2.0'
classpath 'com.github.jengelman.gradle.plugins:shadow:5.0.0'
}
}
Expand Down Expand Up @@ -87,5 +87,9 @@ allprojects {
}
}

wrapper {
distributionType = Wrapper.DistributionType.ALL
}

// endregion Root project script

12 changes: 12 additions & 0 deletions gradle/common-java.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ tasks.withType(Checkstyle) {
}
}

dependencyCheck {
def supFile = "${project.projectDir}/dependency-check-suppressions.xml"
if (file(supFile).exists() && !Project.hasProperty('dependencyCheck.suppressions.skip')) {
suppressionFiles += supFile
}
outputDirectory = "${project.buildDir}/reports/dependency-check"
formats = ['HTML', 'JUNIT']
skipConfigurations = ['mavenDeployer']
cveValidForHours = 1
failBuildOnCVSS = 0
}

jacoco {
toolVersion = "0.8.2"
}
Expand Down

0 comments on commit 9b506e5

Please sign in to comment.