Improved: upgraded and cleaned the implementation for OWASP dependency checker

This commit achieves the following improvements to the OWASP gradle plugin for
dependency checks:
- Upgrade the version from 1.4.0 to 2.1.1
- Remove the dependency on MavenCentral and replace it with a custom link to
  the original source of work using a custom maven URL. Thus all dependencies
  are downloaded from JCenter to avoid duplication of library downloads.
- Update README.md on how to use this task


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809846 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Taher A. Alkhateeb
2017-09-27 13:17:21 +00:00
parent 63938c6816
commit 8701cf7696
2 changed files with 8 additions and 8 deletions
+3 -5
View File
@@ -491,12 +491,10 @@ Xlint prints output of all warnings detected by the compiler
The below command activates a gradle plugin (OWASP) and Identifies
and reports known vulnerabilities (CVEs) in OFBiz library dependencies.
This command takes a long time to execute because it needs to download
all plugin dependencies and the CVE identification process is also
time consuming. But it's the only way to check OFBiz does not use
vulnerable libraries.
The task takes time to complete, and once done, a report will be generated in
$OFBIZ_HOME/build/reports/dependency-check-report.html
`gradlew -PenableOwasp dependencyCheck`
`gradlew -PenableOwasp dependencyCheckAnalyze`
#### Setup eclipse project for OFBiz
+5 -3
View File
@@ -283,15 +283,17 @@ tasks.eclipse.dependsOn(cleanEclipse)
* gradle will download required dependencies and
* activate Gradle's OWASP plugin and its related tasks.
*
* Syntax: gradlew -PenableOwasp dependencyCheck
* Syntax: gradlew -PenableOwasp dependencyCheckAnalyze
*/
buildscript {
if (project.hasProperty('enableOwasp')) {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'org.owasp:dependency-check-gradle:1.4.0'
classpath 'org.owasp:dependency-check-gradle:2.1.1'
}
}
}