diff --git a/dependency-check-gradle/README.md b/dependency-check-gradle/README.md index 209f9714d..6c931ecf1 100644 --- a/dependency-check-gradle/README.md +++ b/dependency-check-gradle/README.md @@ -18,9 +18,7 @@ Current latest version is `0.0.7` ### Step 1, Apply dependency check gradle plugin -Please refer to either one of the solution - -#### Solution 1,Install from Maven Central (Recommended) +Install from Maven central repo ```groovy buildscript { @@ -31,62 +29,13 @@ buildscript { classpath 'com.thoughtworks.tools:dependency-check:0.0.7' } } -``` apply plugin: 'dependency.check' - -#### Solution 2,Install from Gradle Plugin Portal - -[dependency check gradle plugin on Gradle Plugin Portal](https://plugins.gradle.org/plugin/dependency.check) - -**Build script snippet for new, incubating, plugin mechanism introduced in Gradle 2.1:** - -```groovy -plugins { - id "dependency.check" version "0.0.7" -} -``` - -**Build script snippet for use in all Gradle versions:** - -```groovy -buildscript { - repositories { - maven { - url "https://plugins.gradle.org/m2/" - } - } - dependencies { - classpath "gradle.plugin.com.tools.security:dependency-check:0.0.7" - } -} - -apply plugin: "dependency-check" -``` - -#### Solution 3,Install from Bintray - -```groovy -apply plugin: "dependency-check" - -buildscript { - repositories { - maven { - url 'http://dl.bintray.com/wei/maven' - } - mavenCentral() - } - dependencies { - classpath( - 'com.tools.security:dependency-check:0.0.7' - ) - } -} ``` ### Step 2, Run gradle task -Once gradle plugin applied, run following gradle task to check the dependencies: +Once gradle plugin applied, run following gradle task to check dependencies: ``` gradle dependencyCheck