From 43a7cec4407f21883c7684f1e8af1fecfcd21489 Mon Sep 17 00:00:00 2001 From: Mattrixwv Date: Sat, 30 Jul 2022 15:56:44 -0400 Subject: [PATCH] Added sonarqube dependency check --- .gitignore | 2 ++ .vscode/tasks.json | 29 ++++++++++++++++++----------- pom.xml | 37 +++++++++++++++++++++++++++++++------ 3 files changed, 51 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index ca9b71c..346645e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ target/ .settings/ .classpath .project +sonarBuild.sh +sonarBuild.ps1 diff --git a/.vscode/tasks.json b/.vscode/tasks.json index bdf6141..3ab95aa 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -16,22 +16,29 @@ "group": "test" }, { - "label": "sonarqube build", + "label": "sonarqube build (Windows)", "group": "build", "type": "shell", - "command": "mvn", - "args": [ - "clean", - "verify", - "sonar:sonar", - "-D'sonar.projectKey=mattrixwv_cipherstreamjava_AYGcdy79opaC7KAbzMEs'", - "-D'sonar.host.url=http://192.168.1.4:9000'", - "-D'sonar.login=sqp_4f0470fd456027ec97025bf1793358c54f4e7e03'" - ], + "command": "./sonarBuild.ps1", "presentation": { "echo": true, "reveal": "always", - "focus": false, + "focus": true, + "panel": "shared", + "showReuseMessage": true, + "clear": false + }, + "problemMatcher": [] + }, + { + "label": "sonarqube build (Linux)", + "group": "build", + "type": "shell", + "command": "./sonarBuild.sh", + "presentation": { + "echo": true, + "reveal": "always", + "focus": true, "panel": "shared", "showReuseMessage": true, "clear": false diff --git a/pom.xml b/pom.xml index 1d4cf51..8652653 100644 --- a/pom.xml +++ b/pom.xml @@ -6,29 +6,35 @@ com.mattrixwv cipher-stream-java - 1.0.0 + 1.0.1 CipherStreamJava http://www.mattrixwv.com + UTF-8 18 18 + 18 + + 18 + target/dependency-check-report.json + target/dependency-check-report.html mattrixwv myClasses - 1.0.0 + 1.0.1 com.mattrixwv matrix - 1.0.0 + 1.0.1 @@ -41,7 +47,7 @@ org.junit.jupiter junit-jupiter-api - 5.8.2 + 5.9.0 test @@ -117,7 +123,7 @@ file://${session.executionRootDirectory}/version-rules.xml - + org.sonarsource.scanner.maven sonar-maven-plugin @@ -136,13 +142,32 @@ jacoco-site - package + verify report + + org.owasp + dependency-check-maven + 7.1.1 + + + verify + + check + + + + + + json + html + + +