Skip to content

Commit 39ac2b6

Browse files
authored
Enforce JaCoCo execution by default with opt-out via jacocoStrict (#4977)
1 parent 5cf156b commit 39ac2b6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

pom.xml

+18
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454

5555
<version.bytebuddy>1.15.10</version.bytebuddy>
5656
<version.mockito>4.11.0</version.mockito>
57+
<jacocoStrict>true</jacocoStrict>
5758

5859
<!-- Can not use default, since group id != Java package name here -->
5960
<osgi.export>com.fasterxml.jackson.databind.*;version=${project.version}</osgi.export>
@@ -215,6 +216,23 @@
215216
<phase>validate</phase>
216217
<goals><goal>enforce</goal></goals>
217218
</execution>
219+
<execution>
220+
<id>enforce-jacoco-exec</id>
221+
<phase>verify</phase>
222+
<goals>
223+
<goal>enforce</goal>
224+
</goals>
225+
<configuration>
226+
<rules>
227+
<requireFilesExist>
228+
<files>
229+
<file>${project.build.directory}/jacoco.exec</file>
230+
</files>
231+
</requireFilesExist>
232+
</rules>
233+
<fail>${jacocoStrict}</fail>
234+
</configuration>
235+
</execution>
218236
</executions>
219237
</plugin>
220238

0 commit comments

Comments
 (0)