From 46460bc53b3971db43d6db81ac7a808ddf26c2c1 Mon Sep 17 00:00:00 2001 From: Mattrixwv Date: Sat, 30 Jul 2022 15:36:58 -0400 Subject: [PATCH] Added sonarqube dependency scanning --- .gitignore | 2 ++ .vscode/tasks.json | 31 +++++++++++++++++++------------ pom.xml | 33 +++++++++++++++++++++++++++++---- 3 files changed, 50 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index b91e40d..453681b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ .project .settings/ target/ +sonarBuild.ps1 +sonarBuild.sh diff --git a/.vscode/tasks.json b/.vscode/tasks.json index f866770..9ebb26a 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_matrix_AYGcc3wBopaC7KAbzMEd'", - "-D'sonar.host.url=http://192.168.1.4:9000'", - "-D'sonar.login=sqp_7edfbc2b6a7d612a4492cafa51e210e5a61f5f7d'" - ], + "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 @@ -39,4 +46,4 @@ "problemMatcher": [] } ] -} \ No newline at end of file +} diff --git a/pom.xml b/pom.xml index eadc750..29561e4 100644 --- a/pom.xml +++ b/pom.xml @@ -6,23 +6,29 @@ com.mattrixwv matrix - 1.0.0 + 1.0.1 Matrix https://www.mattrixwv.com + UTF-8 + 18 18 18 - 18 + + + 18 + target/dependency-check-report.json + target/dependency-check-report.html org.junit.jupiter junit-jupiter-api - 5.8.2 + 5.9.0 test @@ -106,7 +112,7 @@ file://${session.executionRootDirectory}/version-rules.xml - + org.sonarsource.scanner.maven sonar-maven-plugin @@ -132,6 +138,25 @@ + + org.owasp + dependency-check-maven + 7.1.1 + + + verify + + check + + + + + + json + html + + +