|
246 | 246 | </dependency>
|
247 | 247 | </dependencies>
|
248 | 248 |
|
| 249 | + <profiles> |
| 250 | + <profile> |
| 251 | + <id>coverage</id> |
| 252 | + <build> |
| 253 | + <plugins> |
| 254 | + <plugin> |
| 255 | + <groupId>org.jacoco</groupId> |
| 256 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 257 | + <version>0.8.5</version> |
| 258 | + <configuration> |
| 259 | + <!--Configure to work on codecov--> |
| 260 | + <!--https://github.com/codecov/example-java/blob/master/pom.xml--> |
| 261 | + <excludes> |
| 262 | + <exclude>**/*Builder*</exclude> |
| 263 | + <exclude>**/*Immutable*</exclude> |
| 264 | + <exclude>**/*_Factory*</exclude> |
| 265 | + <exclude>**/*_*Factory*.*</exclude> |
| 266 | + <exclude>**/generated-sources*.*</exclude> |
| 267 | + </excludes> |
| 268 | + <rules> |
| 269 | + <rule implementation="org.jacoco.maven.RuleConfiguration"> |
| 270 | + <element>BUNDLE</element> |
| 271 | + <limits> |
| 272 | + <limit implementation="org.jacoco.report.check.Limit"> |
| 273 | + <counter>INSTRUCTION</counter> |
| 274 | + <value>COVEREDRATIO</value> |
| 275 | + <minimum>0.60</minimum> |
| 276 | + </limit> |
| 277 | + </limits> |
| 278 | + </rule> |
| 279 | + </rules> |
| 280 | + </configuration> |
| 281 | + <executions> |
| 282 | + <execution> |
| 283 | + <id>pre-test</id> |
| 284 | + <goals> |
| 285 | + <goal>prepare-agent</goal> |
| 286 | + </goals> |
| 287 | + </execution> |
| 288 | + <execution> |
| 289 | + <id>default-check</id> |
| 290 | + <goals> |
| 291 | + <goal>check</goal> |
| 292 | + </goals> |
| 293 | + </execution> |
| 294 | + <execution> |
| 295 | + <id>post-unit-test</id> |
| 296 | + <phase>test</phase> |
| 297 | + <goals> |
| 298 | + <goal>report</goal> |
| 299 | + </goals> |
| 300 | + </execution> |
| 301 | + </executions> |
| 302 | + </plugin> |
| 303 | + </plugins> |
| 304 | + </build> |
| 305 | + </profile> |
| 306 | + </profiles> |
| 307 | + |
249 | 308 | <build>
|
250 | 309 | <plugins>
|
251 | 310 | <plugin>
|
|
333 | 392 | <version>4.0.0</version>
|
334 | 393 | <artifactId>spotbugs-maven-plugin</artifactId>
|
335 | 394 | </plugin>
|
336 |
| - <plugin> |
337 |
| - <groupId>org.jacoco</groupId> |
338 |
| - <artifactId>jacoco-maven-plugin</artifactId> |
339 |
| - <version>0.8.5</version> |
340 |
| - <configuration> |
341 |
| - <excludes> |
342 |
| - <exclude>**/*Builder*</exclude> |
343 |
| - <exclude>**/*Immutable*</exclude> |
344 |
| - <exclude>**/*_Factory*</exclude> |
345 |
| - <exclude>**/*_*Factory*.*</exclude> |
346 |
| - <exclude>**/generated-sources*.*</exclude> |
347 |
| - </excludes> |
348 |
| - </configuration> |
349 |
| - </plugin> |
350 | 395 | <plugin>
|
351 | 396 | <groupId>com.coveo</groupId>
|
352 | 397 | <artifactId>fmt-maven-plugin</artifactId>
|
|
0 commit comments