mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-16 00:33:46 +01:00
version 1.3.0
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
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).
|
||||
Reference in New Issue
Block a user