Skip to content

Commit

Permalink
JaCoCo on Java 8 is different from other versions
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Apr 21, 2024
1 parent 52e48f0 commit eba45c0
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,7 @@
<assertj.version>3.25.3</assertj.version>
<jna.version>5.14.0</jna.version>
<japicmp.skip>false</japicmp.skip>
<!-- JaCoCo: Don't make code coverage worse than: -->
<commons.jacoco.haltOnFailure>true</commons.jacoco.haltOnFailure>
<commons.jacoco.classRatio>0.90</commons.jacoco.classRatio>
<commons.jacoco.instructionRatio>0.65</commons.jacoco.instructionRatio>
<commons.jacoco.methodRatio>0.70</commons.jacoco.methodRatio>
<commons.jacoco.branchRatio>0.58</commons.jacoco.branchRatio>
<commons.jacoco.lineRatio>0.68</commons.jacoco.lineRatio>
<commons.jacoco.complexityRatio>0.58</commons.jacoco.complexityRatio>
</properties>

<distributionManagement>
Expand Down Expand Up @@ -534,7 +527,29 @@
</activation>
<properties>
<!-- JaCoCo on Java 8 is different from other versions. -->
<!-- JaCoCo: Don't make code coverage worse than: -->
<commons.jacoco.classRatio>0.89</commons.jacoco.classRatio>
<commons.jacoco.instructionRatio>0.65</commons.jacoco.instructionRatio>
<commons.jacoco.methodRatio>0.70</commons.jacoco.methodRatio>
<commons.jacoco.branchRatio>0.58</commons.jacoco.branchRatio>
<commons.jacoco.lineRatio>0.68</commons.jacoco.lineRatio>
<commons.jacoco.complexityRatio>0.58</commons.jacoco.complexityRatio>
</properties>
</profile>
<profile>
<!-- Java 9 and up -->
<id>java-9-up</id>
<activation>
<jdk>[9,)</jdk>
</activation>
<properties>
<!-- JaCoCo: Don't make code coverage worse than: -->
<commons.jacoco.classRatio>0.90</commons.jacoco.classRatio>
<commons.jacoco.instructionRatio>0.65</commons.jacoco.instructionRatio>
<commons.jacoco.methodRatio>0.70</commons.jacoco.methodRatio>
<commons.jacoco.branchRatio>0.58</commons.jacoco.branchRatio>
<commons.jacoco.lineRatio>0.68</commons.jacoco.lineRatio>
<commons.jacoco.complexityRatio>0.58</commons.jacoco.complexityRatio>
</properties>
</profile>
</profiles>
Expand Down

0 comments on commit eba45c0

Please sign in to comment.