Skip to content

Commit

Permalink
Merge pull request #1001 from cdk/jacoco-sonar-path
Browse files Browse the repository at this point in the history
Sonar settings for aggregated test coverage.
  • Loading branch information
johnmay committed Aug 24, 2023
2 parents 9b8d055 + 7a649dd commit e5e9a28
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<sonar.organization>cdk</sonar.organization>
<sonar.language>java</sonar.language>
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<!--suppress UnresolvedMavenProperty -->
<sonar.coverage.jacoco.xmlReportPaths>${maven.multiModuleProjectDirectory}/bundle/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/bundle/target/site/jacoco-aggregate/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
</properties>
<licenses>
<license>
Expand Down Expand Up @@ -832,18 +836,11 @@
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>start-agent</id>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>generate-report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
Expand Down

0 comments on commit e5e9a28

Please sign in to comment.