Skip to content

Commit

Permalink
Add sonar aggregate/coverage properties to pom.xml to collect coverag…
Browse files Browse the repository at this point in the history
…e. (#10)
  • Loading branch information
Hilbrand authored Feb 3, 2022
1 parent f789f51 commit 3f28019
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,14 @@
<spring.boot.version>2.5.6</spring.boot.version>

<sonar.language>java</sonar.language>
<sonar.maven.plugin.version>3.7.0.1746</sonar.maven.plugin.version>
<sonar.projectKey>aerius_search</sonar.projectKey>
<sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
<sonar.organization>aerius</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>

<aggregate.report.dir>search-sonar-report/target/site/jacoco-aggregate/jacoco.xml</aggregate.report.dir>
<sonar.coverage.jacoco.xmlReportPaths>${basedir}/../${aggregate.report.dir}</sonar.coverage.jacoco.xmlReportPaths>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -256,6 +260,15 @@
</dependencies>
</plugin>

<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>${sonar.maven.plugin.version}</version>
<configuration>
<reuse>true</reuse>
</configuration>
</plugin>

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand Down

0 comments on commit 3f28019

Please sign in to comment.