From 8fefc4588ab53f2d35d23f19a957d7e9d2147a8a Mon Sep 17 00:00:00 2001
From: grimsi <9295182+grimsi@users.noreply.github.com>
Date: Fri, 21 Oct 2022 19:08:46 +0200
Subject: [PATCH] Fix SonarCloud config
---
.github/workflows/build.yml | 2 +-
pom.xml | 4 +++-
sonar-project.properties | 5 -----
3 files changed, 4 insertions(+), 7 deletions(-)
delete mode 100644 sonar-project.properties
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 08cd03b..61235eb 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -47,7 +47,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=grimsi_gameyfin
+ run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
- name: Upload build artifact
uses: actions/upload-artifact@v3
diff --git a/pom.xml b/pom.xml
index cef79b4..1751f87 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,8 +30,10 @@
- grimsi-github
https://sonarcloud.io
+ grimsi-github
+ grimsi_gameyfin
+ ./backend/target/site/jacoco-aggregate/jacoco.xml
diff --git a/sonar-project.properties b/sonar-project.properties
deleted file mode 100644
index 94f3f62..0000000
--- a/sonar-project.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-# Point SONAR to the compiled Java classes
-sonar.java.binaries=./backend/target
-
-# Point SONAR to the JaCoCo report
-sonar.coverage.jacoco.xmlReportPaths=./backend/target/site/jacoco-aggregate/jacoco.xml