Skip to content

Commit

Permalink
docs: update examples to use the plugin portal instead of central (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong authored Nov 12, 2024
1 parent aaab86c commit 0a17ae7
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ dependencies {

## Current Release

The latest version is
[![Maven Central](https://img.shields.io/maven-central/v/org.owasp/dependency-check-gradle.svg)](https://mvnrepository.com/artifact/org.owasp/dependency-check-gradle)
The latest version is 11.1.0.

## Usage

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

### Step 1, Apply dependency check gradle plugin

Install from Maven central repo
Add the plugin to your build.gradle file:

```groovy
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.owasp:dependency-check-gradle:11.1.0'
}
plugins {
id "org.owasp.dependencycheck" version "11.1.0"
}
apply plugin: 'org.owasp.dependencycheck'
```

### Step 2, Run gradle task
Expand Down Expand Up @@ -88,10 +80,12 @@ Try put 'apply plugin: "dependency-check"' inside the 'allprojects' or 'subproje
```groovy
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'org.owasp:dependency-check-gradle:11.1.0'
classpath "org.owasp:dependency-check-gradle:11.1.0"
}
}
Expand All @@ -105,10 +99,12 @@ allprojects {
```groovy
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'org.owasp:dependency-check-gradle:11.1.0'
classpath "org.owasp:dependency-check-gradle:11.1.0"
}
}
Expand Down

0 comments on commit 0a17ae7

Please sign in to comment.