mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 18:11:47 +01:00
added content to resolve issue #220
Former-commit-id: e7d0a7739051f098f36a818fbdfec4eed920647c
This commit is contained in:
28
src/site/markdown/gradle.md.vm
Normal file
28
src/site/markdown/gradle.md.vm
Normal 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).
|
||||||
@@ -23,4 +23,5 @@ OWASP dependency-check's core analysis engine can be used as:
|
|||||||
- [Command Line Tool](dependency-check-cli/index.html)
|
- [Command Line Tool](dependency-check-cli/index.html)
|
||||||
- [Maven Plugin](dependency-check-maven/index.html)
|
- [Maven Plugin](dependency-check-maven/index.html)
|
||||||
- [Ant Task](dependency-check-ant/index.html)
|
- [Ant Task](dependency-check-ant/index.html)
|
||||||
|
- In a [Gradle Build](./gradle.html)
|
||||||
- [Jenkins Plugin](dependency-check-jenkins/index.html)
|
- [Jenkins Plugin](dependency-check-jenkins/index.html)
|
||||||
|
|||||||
Reference in New Issue
Block a user