Skip to content

Commit

Permalink
configure sonarcloud connection #EA-3543
Browse files Browse the repository at this point in the history
  • Loading branch information
gsergiu committed Aug 30, 2023
1 parent f3cd365 commit db158e7
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
16 changes: 13 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,23 @@
<git-commit-id.version>5.0.0</git-commit-id.version>
<git-code-format.version>3.1</git-code-format.version>
<surefire.version>3.0.0-M5</surefire.version>
<!--
<corelib.version>2.16.2</corelib.version>
-->
<!-- sonar plugins -->
<jacoco-plugin.version>0.8.7</jacoco-plugin.version>
<pmd-plugin.version>3.15.0</pmd-plugin.version>
<spotbugs-plugin.version>4.5.2.0</spotbugs-plugin.version>
<sonar-plugin.version>3.7.0.1746</sonar-plugin.version>
<!--
<corelib.version>2.16.2</corelib.version>
-->
<sonar.java.pmd.reportPaths>${project.build.directory}/pmd.xml</sonar.java.pmd.reportPaths>
<sonar.java.spotbugs.reportPaths>${project.build.directory}/spotbugsXml.xml</sonar.java.spotbugs.reportPaths>
<sonar.organization>europeana</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<!-- Exclude POJOs code duplication analysis -->
<sonar.cpd.exclusions>**/model/**/*</sonar.cpd.exclusions>
<aggregate.report.xml>annotation-tests/target/site/jacoco-aggregate/jacoco.xml</aggregate.report.xml>
<sonar.coverage.jacoco.xmlReportPaths>${aggregate.report.xml}</sonar.coverage.jacoco.xmlReportPaths>


</properties>

Expand Down
5 changes: 5 additions & 0 deletions translation-definitions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
<artifactId>translation-definitions</artifactId>
<name>translation-definitions</name>
<description>The shared data model classes shared by the translation API.</description>

<properties>
<sonar.coverage.jacoco.xmlReportPaths>${basedir}/../${aggregate.report.xml}</sonar.coverage.jacoco.xmlReportPaths>
</properties>

<dependencies>
<dependency>
<groupId>eu.europeana.api.commons</groupId>
Expand Down
5 changes: 5 additions & 0 deletions translation-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
<artifactId>translation-service</artifactId>
<name>translation-service</name>
<description>The Java APIs for the language detection and translation services (part of Translation API)</description>

<properties>
<sonar.coverage.jacoco.xmlReportPaths>${basedir}/../${aggregate.report.xml}</sonar.coverage.jacoco.xmlReportPaths>
</properties>

<dependencies>
<dependency>
<groupId>eu.europeana.api</groupId>
Expand Down
6 changes: 5 additions & 1 deletion translation-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
<artifactId>translation-web</artifactId>
<description>The Web Module of the Translation api</description>
<packaging>jar</packaging>


<properties>
<sonar.coverage.jacoco.xmlReportPaths>${basedir}/../${aggregate.report.xml}</sonar.coverage.jacoco.xmlReportPaths>
</properties>

<dependencies>
<!-- spring & boot dependencies -->

Expand Down

0 comments on commit db158e7

Please sign in to comment.