added content to resolve issue #220

Former-commit-id: e7d0a7739051f098f36a818fbdfec4eed920647c
This commit is contained in:
Jeremy Long
2015-05-05 18:42:46 -04:00
parent c232a4fbad
commit 34604efde4
2 changed files with 33 additions and 4 deletions

View File

@@ -0,0 +1,28 @@
Gradle Integration
==================
While a full Gradle Plugin is planned, the following gradle task can be used to
run dependency-check:
```
configurations {
depCheck
}
dependencies {
depCheck "org.owasp:dependency-check-ant:${project.version}"
}
task checkDeps << {
ant.taskdef(name: 'checkDepsTask',
classname: 'org.owasp.dependencycheck.taskdefs.DependencyCheckTask',
classpath: configurations.depCheck.asPath)
ant.checkDepsTask() {
path {
pathelement(path: sourceSets.main.runtimeClasspath.asPath)
}
}
}
```
The above task definition was provided by [Nikita Koksharov](https://github.com/mrniko).

View File

@@ -20,7 +20,8 @@ More information about dependency-check can be found here:
OWASP dependency-check's core analysis engine can be used as:
- [Command Line Tool](dependency-check-cli/index.html)
- [Maven Plugin](dependency-check-maven/index.html)
- [Ant Task](dependency-check-ant/index.html)
- [Jenkins Plugin](dependency-check-jenkins/index.html)
- [Command Line Tool](dependency-check-cli/index.html)
- [Maven Plugin](dependency-check-maven/index.html)
- [Ant Task](dependency-check-ant/index.html)
- In a [Gradle Build](./gradle.html)
- [Jenkins Plugin](dependency-check-jenkins/index.html)