Skip to content

Commit c7f5f12

Browse files
Add jacoco reports
1 parent 49fda18 commit c7f5f12

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

pom.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ limitations under the License.
3737
<google.java.format.version>1.17.0</google.java.format.version>
3838
<gpg.plugin.version>3.2.1</gpg.plugin.version>
3939
<flatten.plugin.version>1.6.0</flatten.plugin.version>
40+
<jacoco.plugin.version>0.8.12</jacoco.plugin.version>
41+
<sonar.coverage.jacoco.xmlReportPaths>target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
4042
<sonar.projectKey>diffblue_diffblue-sonar-plugin</sonar.projectKey>
4143
<sonar.organization>diffblue</sonar.organization>
4244
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
@@ -89,6 +91,26 @@ limitations under the License.
8991
</plugins>
9092
</pluginManagement>
9193
<plugins>
94+
<plugin>
95+
<groupId>org.jacoco</groupId>
96+
<artifactId>jacoco-maven-plugin</artifactId>
97+
<version>${jacoco.plugin.version}</version>
98+
<executions>
99+
<execution>
100+
<id>prepare-agent</id>
101+
<goals>
102+
<goal>prepare-agent</goal>
103+
</goals>
104+
</execution>
105+
<execution>
106+
<id>report</id>
107+
<goals>
108+
<goal>report</goal>
109+
</goals>
110+
<phase>test</phase>
111+
</execution>
112+
</executions>
113+
</plugin>
92114
<plugin>
93115
<groupId>org.codehaus.mojo</groupId>
94116
<artifactId>flatten-maven-plugin</artifactId>

0 commit comments

Comments
 (0)