Skip to content

Commit

Permalink
Adding jacoco plugin and configuring sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaytotomato committed Jul 26, 2024
1 parent a701d13 commit 74cce28
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<sonar.organization>tomaytotomato</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar-maven-plugin.version>4.0.0.4121</sonar-maven-plugin.version>
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<sonar.language>java</sonar.language>
</properties>

<distributionManagement>
Expand Down Expand Up @@ -99,6 +103,27 @@
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<id>jacoco-initialize</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-site</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>

</build>
Expand Down

0 comments on commit 74cce28

Please sign in to comment.