aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Palfinger <gerald.palfinger@iaik.tugraz.at>2021-12-13 15:05:22 +0100
committerGerald Palfinger <gerald.palfinger@iaik.tugraz.at>2022-01-20 14:54:26 +0100
commitaf00cd9b80a3f752ae1544bf4dbe8fe3dc60807e (patch)
tree8dfb8fbe9ba537b91cada7f000f83f9adb2f1bdc
parent66edcf7bab6a846617b77db54a89fab624d87df5 (diff)
downloadpdf-as-4-af00cd9b80a3f752ae1544bf4dbe8fe3dc60807e.tar.gz
pdf-as-4-af00cd9b80a3f752ae1544bf4dbe8fe3dc60807e.tar.bz2
pdf-as-4-af00cd9b80a3f752ae1544bf4dbe8fe3dc60807e.zip
Update to gradle version of OWASP dependency check
-rw-r--r--build.gradle54
1 files changed, 2 insertions, 52 deletions
diff --git a/build.gradle b/build.gradle
index 9ee031f5..a9ce4c20 100644
--- a/build.gradle
+++ b/build.gradle
@@ -6,6 +6,7 @@ buildscript {
dependencies {
classpath "com.github.ben-manes:gradle-versions-plugin:0.28.0"
+ classpath "org.owasp:dependency-check-gradle:6.5.0.1"
}
}
@@ -15,43 +16,16 @@ allprojects {
version = '4.2.1-SNAPSHOT'
}
-configurations {
- cveCheck
-}
-
-dependencies {
- cveCheck 'org.owasp:dependency-check-ant:6.3.2'
-}
-
-task checkCVE {
- doLast {
- // Redefine checkCVEAnt Ant task, with the classpath property set to our newly defined
- // cveCheck configuration classpath.
- ant.taskdef(name: 'checkCVEAnt', classname: 'org.owasp.dependencycheck.taskdefs.DependencyCheckTask',
- classpath: configurations.cveCheck.asPath)
-
- // executing checkCVEAnt Task
- ant.checkCVEAnt(
- applicationname: "PDF-AS",
- reportoutputdirectory: (new File(rootDir, 'releases/cvecheck/' + project.name)).toString(),
- reportformat: "ALL") {
- fileset(dir: (new File(rootDir, 'build/alldependencies')).toString()) {
- include(name: '**/**')
- }
- }
- }
-}
-
subprojects {
apply plugin: 'java-library'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'maven'
+ apply plugin: 'org.owasp.dependencycheck'
group = 'at.gv.egiz.pdfas'
configurations {
deployerJars
- cveCheck
}
repositories {
@@ -73,7 +47,6 @@ subprojects {
dependencies {
testImplementation 'junit:junit:4.13.2'
- cveCheck 'org.owasp:dependency-check-ant:6.1.3'
}
task sourcesJar(type: Jar, dependsOn: classes) {
@@ -112,30 +85,7 @@ subprojects {
from configurations.runtime
into 'build/alldependencies'
}
-
- rootProject.checkCVE.dependsOn copyDeps
-
- task checkCVELocal {
- doLast {
- // Redefine checkCVEAnt Ant task, with the classpath property set to our newly defined
- // cveCheck configuration classpath.
- ant.taskdef(name: 'checkCVEAnt', classname: 'org.owasp.dependencycheck.taskdefs.DependencyCheckTask',
- classpath: configurations.cveCheck.asPath)
-
- // executing checkCVEAnt Task
- ant.checkCVEAnt(
- applicationname: project.name,
- reportoutputdirectory: (new File(rootDir, 'releases/' + version + '/cvecheck/' + project.name)).toString(),
- reportformat: "ALL") {
- fileset(dir: 'build/alldependencies') {
- include(name: '**/**')
- }
- }
- }
- }
- checkCVELocal.dependsOn copyDepsLocal
-
publishing {
publications {
myLibrary(MavenPublication) {