Skip to content

Commit

Permalink
Updates Jacoco configuration to ignore the embedded Apache code (#807)
Browse files Browse the repository at this point in the history
Co-authored-by: Faron Dutton <faron.dutton@insightglobal.com>
  • Loading branch information
fdutton and Faron Dutton committed Jun 5, 2023
1 parent b2d6135 commit b88ccc7
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions pom.xml
Expand Up @@ -299,7 +299,14 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
<version>0.8.10</version>

<configuration>
<excludes>
<exclude>com/networknt/org/apache/commons/validator/**</exclude>
</excludes>
</configuration>

<executions>
<!--
| Prepares the property pointing to the JaCoCo runtime agent
Expand Down Expand Up @@ -398,8 +405,11 @@
<module>
<moduleInfo>
<name>com.networknt.schema</name>
<!-- export everything -->
<exports>*;</exports>
<!-- export everything except embedded Apache code -->
<exports>
!com.networknt.org*;
*;
</exports>
<!-- declare services consumed by the artifact -->
<addServiceUses>true</addServiceUses>
</moduleInfo>
Expand Down

0 comments on commit b88ccc7

Please sign in to comment.