Skip to content

Commit

Permalink
CURATOR-660: Enable code coverage reporting to SonarQube
Browse files Browse the repository at this point in the history
  • Loading branch information
horvathdora committed Jan 25, 2023
1 parent 9b3a145 commit dd301b2
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@
<osgi.require.bundle />
<osgi.export.service />
<osgi.activator />

<!-- Coverage properties -->
<jacoco.version>0.8.8</jacoco.version>
<sonar.version>3.9.1.2184</sonar.version>
</properties>

<scm>
Expand Down Expand Up @@ -1128,5 +1132,42 @@
</repository>
</repositories>
</profile>
<profile>
<id>coverage</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<sonar.coverage.exclusions>**/curator-examples/**/*</sonar.coverage.exclusions>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>${sonar.version}</version>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit dd301b2

Please sign in to comment.