Skip to content

Commit 00363a0

Browse files
committed
docs: update examples to use the plugin portal instead of central
1 parent aaab86c commit 00363a0

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

README.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ dependencies {
3636

3737
## Current Release
3838

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.
4140

4241
## Usage
4342

@@ -46,19 +45,12 @@ for more detailed information on configuration and usage.
4645

4746
### Step 1, Apply dependency check gradle plugin
4847

49-
Install from Maven central repo
48+
Add the plugin to your build.gradle file:
5049

5150
```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"
5953
}
60-
61-
apply plugin: 'org.owasp.dependencycheck'
6254
```
6355

6456
### Step 2, Run gradle task
@@ -88,10 +80,12 @@ Try put 'apply plugin: "dependency-check"' inside the 'allprojects' or 'subproje
8880
```groovy
8981
buildscript {
9082
repositories {
91-
mavenCentral()
83+
maven {
84+
url "https://plugins.gradle.org/m2/"
85+
}
9286
}
9387
dependencies {
94-
classpath 'org.owasp:dependency-check-gradle:11.1.0'
88+
classpath "org.owasp:dependency-check-gradle:11.1.0"
9589
}
9690
}
9791
@@ -105,10 +99,12 @@ allprojects {
10599
```groovy
106100
buildscript {
107101
repositories {
108-
mavenCentral()
102+
maven {
103+
url "https://plugins.gradle.org/m2/"
104+
}
109105
}
110106
dependencies {
111-
classpath 'org.owasp:dependency-check-gradle:11.1.0'
107+
classpath "org.owasp:dependency-check-gradle:11.1.0"
112108
}
113109
}
114110

0 commit comments

Comments
 (0)