Skip to content

Commit c4ee400

Browse files
committed
Add JaCoCo
1 parent b1ca61c commit c4ee400

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

pom.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@
5757
<project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
5858
<junit.version>4.12</junit.version>
5959
<commons.lang.version>2.6</commons.lang.version>
60+
<jacoco.version>0.8.5</jacoco.version>
61+
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
62+
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
63+
<sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath>
64+
<sonar.language>java</sonar.language>
6065
</properties>
6166

6267
<developers>
@@ -119,6 +124,26 @@
119124
<target>1.8</target>
120125
</configuration>
121126
</plugin>
127+
<!-- Coverage -->
128+
<plugin>
129+
<groupId>org.jacoco</groupId>
130+
<artifactId>jacoco-maven-plugin</artifactId>
131+
<version>0.7.7.201606060606</version>
132+
<executions>
133+
<execution>
134+
<goals>
135+
<goal>prepare-agent</goal>
136+
</goals>
137+
</execution>
138+
<execution>
139+
<id>report</id>
140+
<phase>prepare-package</phase>
141+
<goals>
142+
<goal>report</goal>
143+
</goals>
144+
</execution>
145+
</executions>
146+
</plugin>
122147
</plugins>
123148
</build>
124149

0 commit comments

Comments
 (0)