add gradle task, utilize dependency-check-core functions to check dependency vulnerabilities

Former-commit-id: bef42df0ed3869fbceb4fe3ec459228031554439
This commit is contained in:
ma wei
2015-05-08 15:35:55 +08:00
parent 8fbf8df0bd
commit b0e34fd062
5 changed files with 70 additions and 7 deletions

View File

@@ -3,12 +3,16 @@ apply plugin: 'groovy'
apply plugin: 'maven'
repositories {
mavenCentral()
mavenCentral()
}
dependencies {
compile localGroovy()
compile gradleApi()
compile(
localGroovy(),
gradleApi(),
'org.owasp:dependency-check-core:1.2.10',
'org.owasp:dependency-check-utils:1.2.10'
)
}
group = 'com.tools.security'
@@ -17,7 +21,7 @@ version = '0.0.1'
uploadArchives {
repositories {
mavenDeployer {
repository(url: uri('../repo'))
repository(url: uri('../../../repo'))
}
}
}