File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,7 @@ dependencies {
36
36
37
37
## Current Release
38
38
39
- The latest version is
40
- [ ![ Maven Central] ( https://img.shields.io/maven-central/v/org.owasp/dependency-check-gradle.svg )] ( https://mvnrepository.com/artifact/org.owasp/dependency-check-gradle )
39
+ The latest version is 11.1.0.
41
40
42
41
## Usage
43
42
@@ -46,19 +45,12 @@ for more detailed information on configuration and usage.
46
45
47
46
### Step 1, Apply dependency check gradle plugin
48
47
49
- Install from Maven central repo
48
+ Add the plugin to your build.gradle file:
50
49
51
50
``` groovy
52
- buildscript {
53
- repositories {
54
- mavenCentral()
55
- }
56
- dependencies {
57
- classpath 'org.owasp:dependency-check-gradle:11.1.0'
58
- }
51
+ plugins {
52
+ id "org.owasp.dependencycheck" version "11.1.0"
59
53
}
60
-
61
- apply plugin: 'org.owasp.dependencycheck'
62
54
```
63
55
64
56
### Step 2, Run gradle task
@@ -88,10 +80,12 @@ Try put 'apply plugin: "dependency-check"' inside the 'allprojects' or 'subproje
88
80
``` groovy
89
81
buildscript {
90
82
repositories {
91
- mavenCentral()
83
+ maven {
84
+ url "https://plugins.gradle.org/m2/"
85
+ }
92
86
}
93
87
dependencies {
94
- classpath ' org.owasp:dependency-check-gradle:11.1.0'
88
+ classpath " org.owasp:dependency-check-gradle:11.1.0"
95
89
}
96
90
}
97
91
@@ -105,10 +99,12 @@ allprojects {
105
99
``` groovy
106
100
buildscript {
107
101
repositories {
108
- mavenCentral()
102
+ maven {
103
+ url "https://plugins.gradle.org/m2/"
104
+ }
109
105
}
110
106
dependencies {
111
- classpath ' org.owasp:dependency-check-gradle:11.1.0'
107
+ classpath " org.owasp:dependency-check-gradle:11.1.0"
112
108
}
113
109
}
114
110
You can’t perform that action at this time.
0 commit comments