update README file

This commit is contained in:
ma wei
2015-08-25 23:17:12 +08:00
parent 05c8a6282d
commit facd803943

View File

@@ -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 1Install 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 2Install 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 3Install 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