From 1760caea1b0f274e13605d76cabd7979cab4eddc Mon Sep 17 00:00:00 2001 From: Mattrixwv Date: Sat, 25 Jun 2022 16:09:26 -0400 Subject: [PATCH] Updated for sonarqube --- .gitignore | 1 - .vscode/settings.json | 37 +++++++++++++++++++++++++++++++++++++ .vscode/tasks.json | 42 ++++++++++++++++++++++++++++++++++++++++++ pom.xml | 26 ++++++++++++++++++++++++++ 4 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.gitignore b/.gitignore index 8265628..ca9b71c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ target/ #Ignore my vscode files -.vscode/ .settings/ .classpath .project diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..734a31b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,37 @@ +{ + "java.configuration.updateBuildConfiguration": "automatic", + "Lua.runtime.special": [], + "Lua.runtime.version": "Lua 5.1", + "Lua.runtime.pathStrict": false, + "Lua.runtime.path": [ + "?.lua", + "?/init.lua", + "?/__init__.lua" + ], + "Lua.runtime.plugin": "c:\\Users\\m_ell\\.vscode\\extensions\\lunarwtr.lotro-api-1.0.13\\resources\\Lua\\Plugin\\plugin.lua", + "Lua.workspace.library": [ + "c:\\Users\\m_ell\\.vscode\\extensions\\lunarwtr.lotro-api-1.0.13\\resources\\Lua\\EmmyLua\\Turbine" + ], + "xml.fileAssociations": [ + { + "pattern": "**/*.plugin", + "systemId": "c:\\Users\\m_ell\\.vscode\\extensions\\lunarwtr.lotro-api-1.0.13\\resources\\xsds\\lotroplugin.xsd" + }, + { + "pattern": "**/*.plugincompendium", + "systemId": "c:\\Users\\m_ell\\.vscode\\extensions\\lunarwtr.lotro-api-1.0.13\\resources\\xsds\\plugincompendium.xsd" + }, + { + "pattern": "**/*.musiccompendium", + "systemId": "c:\\Users\\m_ell\\.vscode\\extensions\\lunarwtr.lotro-api-1.0.13\\resources\\xsds\\musiccompendium.xsd" + }, + { + "pattern": "**/*.skincompendium", + "systemId": "c:\\Users\\m_ell\\.vscode\\extensions\\lunarwtr.lotro-api-1.0.13\\resources\\xsds\\skincompendium.xsd" + }, + { + "pattern": "**/SkinDefinition.xml", + "systemId": "c:\\Users\\m_ell\\.vscode\\extensions\\lunarwtr.lotro-api-1.0.13\\resources\\xsds\\lotro-skin.xsd" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..bdf6141 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,42 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "verify", + "type": "shell", + "command": "mvn -B verify", + "group": "build" + }, + { + "label": "test", + "type": "shell", + "command": "mvn -B test", + "group": "test" + }, + { + "label": "sonarqube build", + "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'" + ], + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared", + "showReuseMessage": true, + "clear": false + }, + "problemMatcher": [] + } + ] +} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 0d8f5f8..3149ba5 100644 --- a/pom.xml +++ b/pom.xml @@ -100,6 +100,32 @@ maven-project-info-reports-plugin 3.1.1 + + + org.sonarsource.scanner.maven + sonar-maven-plugin + 3.9.1.2184 + + + org.jacoco + jacoco-maven-plugin + 0.8.8 + + + jacoco-initialize + + prepare-agent + + + + jacoco-site + package + + report + + + +