Skip to content

Commit 7bd14b0

Browse files
committed
[JAMES-3978] build cache for jacoco report plugin
1 parent b82c926 commit 7bd14b0

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

pom.xml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3436,6 +3436,71 @@
34363436
</execution>
34373437
</executions>
34383438
</plugin>
3439+
<plugin>
3440+
<groupId>org.jacoco</groupId>
3441+
<artifactId>jacoco-maven-plugin</artifactId>
3442+
<skipIfTrue>
3443+
<property>skip</property>
3444+
</skipIfTrue>
3445+
<executions>
3446+
<execution>
3447+
<id>jacoco-report</id>
3448+
<inputs>
3449+
<properties>
3450+
<property>
3451+
<name>dataFileExcludes</name>
3452+
</property>
3453+
<property>
3454+
<name>dataFileExcludes</name>
3455+
</property>
3456+
<property>
3457+
<name>dataFileIncludes</name>
3458+
</property>
3459+
<property>
3460+
<name>excludes</name>
3461+
</property>
3462+
<property>
3463+
<name>footer</name>
3464+
</property>
3465+
<property>
3466+
<name>includeCurrentProject</name>
3467+
</property>
3468+
<property>
3469+
<name>includes</name>
3470+
</property>
3471+
<property>
3472+
<name>outputEncoding</name>
3473+
</property>
3474+
<property>
3475+
<name>sourceEncoding</name>
3476+
</property>
3477+
<property>
3478+
<name>title</name>
3479+
</property>
3480+
</properties>
3481+
<ignoredProperties>
3482+
<ignore>project</ignore>
3483+
<ignore>reactorProjects</ignore>
3484+
<!--
3485+
we should not be ignoring this since formats changes the content of the output
3486+
but it contains a list of enum see https://github.com/jacoco/jacoco/blob/562a7299399b8321dfcf8eeb21ea4bfc27556fdc/jacoco-maven-plugin/src/org/jacoco/maven/AbstractReportMojo.java
3487+
and that's not storable in the cache key
3488+
no sure how this should be handled ?
3489+
-->
3490+
<ignore>formats</ignore>
3491+
</ignoredProperties>
3492+
</inputs>
3493+
<outputs>
3494+
<cacheableBecause>Test coverage reports depend on test execution and don't affect final build product.</cacheableBecause>
3495+
<directories>
3496+
<directory>
3497+
<name>outputDirectory</name>
3498+
</directory>
3499+
</directories>
3500+
</outputs>
3501+
</execution>
3502+
</executions>
3503+
</plugin>
34393504
</plugins>
34403505
</develocity>
34413506
</configuration>

0 commit comments

Comments
 (0)