+
diff --git a/frontend/src/app/components/game-detail-view/game-detail-view.component.ts b/frontend/src/app/components/game-detail-view/game-detail-view.component.ts
index 444f1b0..88f6db7 100644
--- a/frontend/src/app/components/game-detail-view/game-detail-view.component.ts
+++ b/frontend/src/app/components/game-detail-view/game-detail-view.component.ts
@@ -48,6 +48,24 @@ export class GameDetailViewComponent {
this.gamesService.downloadGame(this.game.slug);
}
+ public refreshGame(): void {
+ this.gamesService.refreshGame(this.game.slug).subscribe({
+ next: game => {
+ this.game = game;
+ if(game.companies !== undefined) {
+ this.companiesWithLogo = game.companies.filter(c => c.logoId !== undefined && c.logoId.length > 0);
+ }
+ },
+ error: error => {
+ if (error.status === 404) {
+ this.router.navigate(['/library']);
+ } else {
+ console.error(error);
+ }
+ }
+ });
+ }
+
public bytesAsHumanReadableString(bytes: number): string {
const thresh = 1024;
diff --git a/frontend/src/app/services/games.service.ts b/frontend/src/app/services/games.service.ts
index 87bd6f4..ea7a5b8 100644
--- a/frontend/src/app/services/games.service.ts
+++ b/frontend/src/app/services/games.service.ts
@@ -92,6 +92,10 @@ export class GamesService implements GamesApi {
window.open(`v1${this.apiPath}/game/${slug}/download`, '_top');
}
+ refreshGame(slug: String): Observable
{
+ return this.http.get(`${this.apiPath}/game/${slug}/refresh`);
+ }
+
getGameOverviews(): Observable {
return this.http.get(`${this.apiPath}/game-overviews`);
}
From 46b8ddcd2aa638422934eb28e06f6aa69d60dd88 Mon Sep 17 00:00:00 2001
From: shawly
Date: Thu, 20 Oct 2022 00:34:19 +0200
Subject: [PATCH 08/15] fix(game-detail): prevent overflow of long company
logos
Fixes grimsi/gameyfin#55
---
.../game-detail-view/game-detail-view.component.html | 6 +++---
.../game-detail-view/game-detail-view.component.scss | 8 ++++++++
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/frontend/src/app/components/game-detail-view/game-detail-view.component.html b/frontend/src/app/components/game-detail-view/game-detail-view.component.html
index 8d2d39b..692a2cf 100644
--- a/frontend/src/app/components/game-detail-view/game-detail-view.component.html
+++ b/frontend/src/app/components/game-detail-view/game-detail-view.component.html
@@ -3,7 +3,7 @@
-
+
@@ -20,8 +20,8 @@
0">
Developed by
-
-

+
+
diff --git a/frontend/src/app/components/game-detail-view/game-detail-view.component.scss b/frontend/src/app/components/game-detail-view/game-detail-view.component.scss
index e69de29..fda9bd6 100644
--- a/frontend/src/app/components/game-detail-view/game-detail-view.component.scss
+++ b/frontend/src/app/components/game-detail-view/game-detail-view.component.scss
@@ -0,0 +1,8 @@
+.mat-card {
+// min-height: max-content;
+
+ .company-logos img {
+ max-height: 52px;
+ max-width: 260px;
+ }
+}
From c5b167d0c384d8df133420acd99d7c938500d3a0 Mon Sep 17 00:00:00 2001
From: Simon Grimme
Date: Thu, 20 Oct 2022 12:17:54 +0300
Subject: [PATCH 09/15] Implement some more test cases for ProtobufUtil and
FilenameUtil
---
backend/pom.xml | 6 ++
.../de/grimsi/gameyfin/igdb/IgdbWrapper.java | 7 +-
.../gameyfin/util/FilenameUtilTest.java | 93 +++++++++++++++++++
.../gameyfin/util/ProtobufUtilTest.java | 20 ++++
.../src/test/resources/application-test.yml | 4 +-
5 files changed, 123 insertions(+), 7 deletions(-)
create mode 100644 backend/src/test/java/de/grimsi/gameyfin/util/FilenameUtilTest.java
create mode 100644 backend/src/test/java/de/grimsi/gameyfin/util/ProtobufUtilTest.java
diff --git a/backend/pom.xml b/backend/pom.xml
index 2b5633f..ee8d887 100644
--- a/backend/pom.xml
+++ b/backend/pom.xml
@@ -141,6 +141,12 @@
mockwebserver
test
+
+ com.google.jimfs
+ jimfs
+ 1.2
+ test
+
diff --git a/backend/src/main/java/de/grimsi/gameyfin/igdb/IgdbWrapper.java b/backend/src/main/java/de/grimsi/gameyfin/igdb/IgdbWrapper.java
index 9b30bc5..c65d45b 100644
--- a/backend/src/main/java/de/grimsi/gameyfin/igdb/IgdbWrapper.java
+++ b/backend/src/main/java/de/grimsi/gameyfin/igdb/IgdbWrapper.java
@@ -9,7 +9,6 @@ import io.github.resilience4j.reactor.bulkhead.operator.BulkheadOperator;
import io.github.resilience4j.reactor.ratelimiter.operator.RateLimiterOperator;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
-import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Service;
@@ -111,7 +110,7 @@ public class IgdbWrapper {
Igdb.GameResult.class
);
- if(gameResult == null) return Collections.emptyList();
+ if (gameResult == null) return Collections.emptyList();
return gameResult.getGamesList().stream().map(gameMapper::toAutocompleteSuggestionDto).toList();
}
@@ -129,10 +128,10 @@ public class IgdbWrapper {
// Try to remove brackets (and their content) at the end of the search term and search again
// Although this process is recursive, we will only end up with a maximum recursion depth of two
- Pattern brackets = Pattern.compile ("[()<>{}\\[\\]]");
+ Pattern brackets = Pattern.compile("[()<>{}\\[\\]]");
Matcher hasBrackets = brackets.matcher(searchTerm);
- if(hasBrackets.find()) {
+ if (hasBrackets.find()) {
String searchTermWithoutBrackets = searchTerm.split(brackets.pattern())[0].trim();
log.warn("Trying again with search term '{}'", searchTermWithoutBrackets);
return searchForGameByTitle(searchTermWithoutBrackets);
diff --git a/backend/src/test/java/de/grimsi/gameyfin/util/FilenameUtilTest.java b/backend/src/test/java/de/grimsi/gameyfin/util/FilenameUtilTest.java
new file mode 100644
index 0000000..9ea385b
--- /dev/null
+++ b/backend/src/test/java/de/grimsi/gameyfin/util/FilenameUtilTest.java
@@ -0,0 +1,93 @@
+package de.grimsi.gameyfin.util;
+
+import com.google.common.jimfs.Configuration;
+import com.google.common.jimfs.Jimfs;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.Arguments;
+import org.junit.jupiter.params.provider.MethodSource;
+
+import java.io.IOException;
+import java.nio.file.FileSystem;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.util.List;
+import java.util.stream.Stream;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.junit.jupiter.api.Named.named;
+import static org.junit.jupiter.params.provider.Arguments.arguments;
+
+class FilenameUtilTest {
+
+ private static final FileSystem unixFS = Jimfs.newFileSystem(Configuration.unix());
+ private static final FileSystem osxFS = Jimfs.newFileSystem(Configuration.osX());
+ private static final FileSystem winFS = Jimfs.newFileSystem(Configuration.windows());
+ private static final List gameFileExtensions = List.of("extension_1", "extension_2", "extension_3");
+
+ @AfterAll
+ static void close() throws IOException {
+ unixFS.close();
+ osxFS.close();
+ winFS.close();
+ }
+
+ @ParameterizedTest
+ @MethodSource("fileSystems")
+ void getFilenameWithoutExtension_File(FileSystem fileSystem) throws IOException {
+ String filename = "example_file";
+
+ Path p = fileSystem.getPath("%s.%s".formatted(filename, gameFileExtensions.get(0)));
+ Files.createFile(p);
+
+ String result = FilenameUtil.getFilenameWithoutExtension(p);
+
+ assertThat(result).isEqualTo(filename);
+ }
+
+ @ParameterizedTest
+ @MethodSource("fileSystems")
+ void getFilenameWithoutExtension_Folder(FileSystem fileSystem) throws IOException {
+ String filename = "example_folder";
+
+ Path p = fileSystem.getPath("%s.%s".formatted(filename, gameFileExtensions.get(0)));
+ Files.createDirectory(p);
+
+ String result = FilenameUtil.getFilenameWithoutExtension(p);
+
+ assertThat(result).isEqualTo("%s.%s".formatted(filename, gameFileExtensions.get(0)));
+ }
+
+ @Test
+ void getFilenameWithExtension_Unix() {
+ }
+
+ @Test
+ void getFilenameWithExtension_OSX() {
+ }
+
+ @Test
+ void getFilenameWithExtension_Windows() {
+ }
+
+ @Test
+ void hasGameArchiveExtension_Unix() {
+ }
+
+ @Test
+ void hasGameArchiveExtension_OSX() {
+ }
+
+ @Test
+ void hasGameArchiveExtension_Windows() {
+ }
+
+ private static Stream fileSystems() {
+ return Stream.of(
+ arguments(named("Unix", unixFS)),
+ arguments(named("OSX", osxFS)),
+ arguments(named("Windows", winFS))
+ );
+ }
+}
\ No newline at end of file
diff --git a/backend/src/test/java/de/grimsi/gameyfin/util/ProtobufUtilTest.java b/backend/src/test/java/de/grimsi/gameyfin/util/ProtobufUtilTest.java
new file mode 100644
index 0000000..240b53b
--- /dev/null
+++ b/backend/src/test/java/de/grimsi/gameyfin/util/ProtobufUtilTest.java
@@ -0,0 +1,20 @@
+package de.grimsi.gameyfin.util;
+
+import com.google.protobuf.Timestamp;
+import org.junit.jupiter.api.Test;
+
+import java.time.Instant;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+class ProtobufUtilTest {
+
+ @Test
+ void toInstant() {
+ Timestamp t = Timestamp.newBuilder().setSeconds(1).build();
+
+ Instant i = ProtobufUtil.toInstant(t);
+
+ assertThat(i.getEpochSecond()).isEqualTo(1);
+ }
+}
\ No newline at end of file
diff --git a/backend/src/test/resources/application-test.yml b/backend/src/test/resources/application-test.yml
index 8702211..c02f7cf 100644
--- a/backend/src/test/resources/application-test.yml
+++ b/backend/src/test/resources/application-test.yml
@@ -2,6 +2,4 @@ gameyfin:
igdb:
api:
client-id: igdb_client_id
- client-secret: igdb_client_secret
- config:
- preferred-platforms: 6
+ client-secret: igdb_client_secret
\ No newline at end of file
From f908785891795f8dfcd8faf8c3f8ad55e0a895d6 Mon Sep 17 00:00:00 2001
From: Simon Grimme
Date: Thu, 20 Oct 2022 14:31:59 +0300
Subject: [PATCH 10/15] Finished FilenameUtilTest
---
.../gameyfin/util/FilenameUtilTest.java | 65 ++++++++++++++-----
1 file changed, 48 insertions(+), 17 deletions(-)
diff --git a/backend/src/test/java/de/grimsi/gameyfin/util/FilenameUtilTest.java b/backend/src/test/java/de/grimsi/gameyfin/util/FilenameUtilTest.java
index 9ea385b..306dcf5 100644
--- a/backend/src/test/java/de/grimsi/gameyfin/util/FilenameUtilTest.java
+++ b/backend/src/test/java/de/grimsi/gameyfin/util/FilenameUtilTest.java
@@ -2,14 +2,18 @@ package de.grimsi.gameyfin.util;
import com.google.common.jimfs.Configuration;
import com.google.common.jimfs.Jimfs;
+import org.apache.commons.io.FileUtils;
import org.junit.jupiter.api.AfterAll;
-import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import java.io.IOException;
import java.nio.file.FileSystem;
+import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
@@ -24,10 +28,16 @@ class FilenameUtilTest {
private static final FileSystem unixFS = Jimfs.newFileSystem(Configuration.unix());
private static final FileSystem osxFS = Jimfs.newFileSystem(Configuration.osX());
private static final FileSystem winFS = Jimfs.newFileSystem(Configuration.windows());
+
private static final List gameFileExtensions = List.of("extension_1", "extension_2", "extension_3");
+ @BeforeAll
+ static void init() {
+ new FilenameUtil().setPossibleGameFileExtensions(gameFileExtensions);
+ }
+
@AfterAll
- static void close() throws IOException {
+ static void closeFileSystems() throws IOException {
unixFS.close();
osxFS.close();
winFS.close();
@@ -44,6 +54,8 @@ class FilenameUtilTest {
String result = FilenameUtil.getFilenameWithoutExtension(p);
assertThat(result).isEqualTo(filename);
+
+ Files.deleteIfExists(p);
}
@ParameterizedTest
@@ -57,30 +69,49 @@ class FilenameUtilTest {
String result = FilenameUtil.getFilenameWithoutExtension(p);
assertThat(result).isEqualTo("%s.%s".formatted(filename, gameFileExtensions.get(0)));
+
+ Files.deleteIfExists(p);
}
- @Test
- void getFilenameWithExtension_Unix() {
+ @ParameterizedTest
+ @MethodSource("fileSystems")
+ void getFilenameWithExtension(FileSystem fileSystem) throws IOException {
+ String filename = "example_file";
+
+ Path p = fileSystem.getPath("%s.%s".formatted(filename, gameFileExtensions.get(0)));
+ Files.createFile(p);
+
+ String result = FilenameUtil.getFilenameWithExtension(p);
+
+ assertThat(result).isEqualTo("%s.%s".formatted(filename, gameFileExtensions.get(0)));
+
+ Files.deleteIfExists(p);
}
- @Test
- void getFilenameWithExtension_OSX() {
+ @ParameterizedTest
+ @MethodSource("fileSystems")
+ void hasGameArchiveExtension_gameArchive(FileSystem fileSystem) throws IOException {
+ String filename = "example_file";
+
+ Path p = fileSystem.getPath("%s.%s".formatted(filename, gameFileExtensions.get(0)));
+ Files.createFile(p);
+
+ assertThat(FilenameUtil.hasGameArchiveExtension(p)).isTrue();
+
+ Files.deleteIfExists(p);
}
- @Test
- void getFilenameWithExtension_Windows() {
- }
+ @ParameterizedTest
+ @MethodSource("fileSystems")
+ void hasGameArchiveExtension_notGameArchive(FileSystem fileSystem) throws IOException {
+ String filename = "example_file";
- @Test
- void hasGameArchiveExtension_Unix() {
- }
+ Path p = fileSystem.getPath("%s.%s".formatted(filename, "some_other_extension"));
+ Files.createFile(p);
- @Test
- void hasGameArchiveExtension_OSX() {
- }
+ assertThat(FilenameUtil.hasGameArchiveExtension(p)).isFalse();
- @Test
- void hasGameArchiveExtension_Windows() {
+ Files.deleteIfExists(p);
}
private static Stream fileSystems() {
From 0c9eb90f5aba20f77a7c6e1af0d6bb5807e31c23 Mon Sep 17 00:00:00 2001
From: grimsi <9295182+grimsi@users.noreply.github.com>
Date: Fri, 21 Oct 2022 17:30:57 +0200
Subject: [PATCH 11/15] Switch CI pipeline to SonarCloud
---
.github/workflows/build.yml | 27 ++++++++++++++++-----------
pom.xml | 5 +++++
sonar-project.properties | 2 --
3 files changed, 21 insertions(+), 13 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index fd19a95..bccdfcc 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -16,14 +16,23 @@ jobs:
steps:
- name: Git checkout
uses: actions/checkout@v3
-
+ with:
+ fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
+
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '18'
distribution: 'temurin'
cache: 'maven'
-
+
+ - name: Cache SonarCloud packages
+ uses: actions/cache@v3
+ with:
+ path: ~/.sonar/cache
+ key: ${{ runner.os }}-sonar
+ restore-keys: ${{ runner.os }}-sonar
+
- name: Extract Maven project version
id: project
run: echo "GAMEYFIN_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
@@ -31,15 +40,11 @@ jobs:
- name: Show extracted Maven project version
run: echo "${{ steps.project.outputs.GAMEYFIN_VERSION }}"
- - name: Maven build
- run: mvn --batch-mode --update-snapshots package
-
- - name: SonarQube scan
- uses: kitabisa/sonarqube-action@v1.2.0
- with:
- host: https://sonarqube.grimsi.de
- login: ${{ secrets.SONARQUBE_TOKEN }}
- projectKey: grimsi_gameyfin_AYPM67pzsxiaNzCh9BZd
+ - name: Build and analyze
+ 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
- name: Upload build artifact
uses: actions/upload-artifact@v3
diff --git a/pom.xml b/pom.xml
index 4911d82..64af3b9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,6 +15,11 @@
backend
+
+ grimsi-github
+ https://sonarcloud.io
+
+
org.springframework.boot
spring-boot-starter-parent
diff --git a/sonar-project.properties b/sonar-project.properties
index cb0b4b5..efe7579 100644
--- a/sonar-project.properties
+++ b/sonar-project.properties
@@ -1,4 +1,2 @@
-sonar.projectKey=grimsi_gameyfin_AYPM67pzsxiaNzCh9BZd
-
# Point SONAR to the compiled Java classes
sonar.java.binaries=./backend/target
From 435ed2360e1aa9c427fce8c3611d915f1c61c746 Mon Sep 17 00:00:00 2001
From: grimsi <9295182+grimsi@users.noreply.github.com>
Date: Fri, 21 Oct 2022 17:44:57 +0200
Subject: [PATCH 12/15] Generate test coverage report
---
backend/pom.xml | 15 +++++++++++++++
pom.xml | 50 ++++++++++++++++++++++++++++++++++++++++++++-----
2 files changed, 60 insertions(+), 5 deletions(-)
diff --git a/backend/pom.xml b/backend/pom.xml
index 0842744..511520f 100644
--- a/backend/pom.xml
+++ b/backend/pom.xml
@@ -223,6 +223,21 @@
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+
+
+ report
+
+ report-aggregate
+
+ verify
+
+
+
diff --git a/pom.xml b/pom.xml
index 64af3b9..3bd169b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,5 +1,6 @@
-
+
4.0.0
de.grimsi
@@ -18,30 +19,69 @@
grimsi-github
https://sonarcloud.io
+ 0.8.8
+ 2.5.3
org.springframework.boot
spring-boot-starter-parent
2.7.4
-
+
scm:git:https://github.com/grimsi/gameyfin.git
scm:git:https://github.com/grimsi/gameyfin.git
scm:git:https://github.com/grimsi/gameyfin.git
- v1.2.2
+
+
+ coverage
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+
+
+ prepare-agent
+
+ prepare-agent
+
+
+
+ report
+
+ report
+
+
+
+
+
+
+
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco-maven-plugin.version}
+
+
+
+
org.apache.maven.plugins
maven-release-plugin
- 2.5.3
+ ${maven-release-plugin.version}
- [ci skip]
+ [ci skip]
v@{project.version}
frontend/package.json
From 24656ea0756f04da4b6120094544caec3c3b2089 Mon Sep 17 00:00:00 2001
From: grimsi <9295182+grimsi@users.noreply.github.com>
Date: Fri, 21 Oct 2022 17:58:01 +0200
Subject: [PATCH 13/15] Switch to SonarCloud
---
.github/workflows/build.yml | 36 ++++++++++++++++++++++--------------
pom.xml | 6 +++++-
sonar-project.properties | 2 +-
3 files changed, 28 insertions(+), 16 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index fd19a95..b24b904 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -16,30 +16,38 @@ jobs:
steps:
- name: Git checkout
uses: actions/checkout@v3
+ with:
+ fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '18'
distribution: 'temurin'
- cache: 'maven'
-
+
+ - name: Cache SonarCloud packages
+ uses: actions/cache@v3
+ with:
+ path: ~/.sonar/cache
+ key: ${{ runner.os }}-sonar
+ restore-keys: ${{ runner.os }}-sonar
+
+ - name: Cache Maven packages
+ uses: actions/cache@v3
+ with:
+ path: ~/.m2
+ key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-m2
+
- name: Extract Maven project version
id: project
run: echo "GAMEYFIN_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
-
- - name: Show extracted Maven project version
- run: echo "${{ steps.project.outputs.GAMEYFIN_VERSION }}"
- - name: Maven build
- run: mvn --batch-mode --update-snapshots package
-
- - name: SonarQube scan
- uses: kitabisa/sonarqube-action@v1.2.0
- with:
- host: https://sonarqube.grimsi.de
- login: ${{ secrets.SONARQUBE_TOKEN }}
- projectKey: grimsi_gameyfin_AYPM67pzsxiaNzCh9BZd
+ - name: Build and analyze
+ 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
- name: Upload build artifact
uses: actions/upload-artifact@v3
diff --git a/pom.xml b/pom.xml
index 4911d82..c2c5cf9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -26,9 +26,13 @@
scm:git:https://github.com/grimsi/gameyfin.git
scm:git:https://github.com/grimsi/gameyfin.git
scm:git:https://github.com/grimsi/gameyfin.git
- v1.2.2
+
+ grimsi-github
+ https://sonarcloud.io
+
+
diff --git a/sonar-project.properties b/sonar-project.properties
index cb0b4b5..3593a3c 100644
--- a/sonar-project.properties
+++ b/sonar-project.properties
@@ -1,4 +1,4 @@
-sonar.projectKey=grimsi_gameyfin_AYPM67pzsxiaNzCh9BZd
+sonar.projectKey=grimsi_gameyfin
# Point SONAR to the compiled Java classes
sonar.java.binaries=./backend/target
From 3bfb9acb4134e7bf292dc42cccc4056c283220fd Mon Sep 17 00:00:00 2001
From: grimsi <9295182+grimsi@users.noreply.github.com>
Date: Fri, 21 Oct 2022 18:38:45 +0200
Subject: [PATCH 14/15] Fix JaCoCo path
---
sonar-project.properties | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sonar-project.properties b/sonar-project.properties
index efe7579..94f3f62 100644
--- a/sonar-project.properties
+++ b/sonar-project.properties
@@ -1,2 +1,5 @@
# 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
From 4d4c0d7afc0f7b2ba2b0cb1589fa0073356c1ed0 Mon Sep 17 00:00:00 2001
From: grimsi <9295182+grimsi@users.noreply.github.com>
Date: Fri, 21 Oct 2022 18:47:06 +0200
Subject: [PATCH 15/15] Fix JaCoCo maven plugin version
---
backend/pom.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/backend/pom.xml b/backend/pom.xml
index ce82109..5247c41 100644
--- a/backend/pom.xml
+++ b/backend/pom.xml
@@ -259,6 +259,7 @@
org.jacoco
jacoco-maven-plugin
+ 0.8.8
report