This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch POOL_2_X
in repository https://gitbox.apache.org/repos/asf/commons-pool.git
The following commit(s) were added to refs/heads/POOL_2_X by this push:
new 339a0f51 Set a baseline for JaCoCo checks
339a0f51 is described below
commit 339a0f51575f3ab505b3e4365b18c5d3e0af584d
Author: Gary Gregory <[email protected]>
AuthorDate: Wed May 8 18:58:25 2024 -0400
Set a baseline for JaCoCo checks
---
pom.xml | 33 +++++++++++++++++----------------
1 file changed, 17 insertions(+), 16 deletions(-)
diff --git a/pom.xml b/pom.xml
index eb023f61..86e0e56c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -211,8 +211,16 @@
<japicmp.skip>false</japicmp.skip>
<spotbugs.skip>false</spotbugs.skip>
+ <surefire.argline></surefire.argline>
+ <!-- JaCoCo: Don't make code coverage worse than: -->
+ <commons.jacoco.haltOnFailure>true</commons.jacoco.haltOnFailure>
+ <commons.jacoco.classRatio>0.98</commons.jacoco.classRatio>
+ <commons.jacoco.instructionRatio>0.86</commons.jacoco.instructionRatio>
+ <commons.jacoco.methodRatio>0.87</commons.jacoco.methodRatio>
+ <commons.jacoco.branchRatio>0.83</commons.jacoco.branchRatio>
+ <commons.jacoco.lineRatio>0.86</commons.jacoco.lineRatio>
+ <commons.jacoco.complexityRatio>0.80</commons.jacoco.complexityRatio>
</properties>
-
<build>
<defaultGoal>clean verify apache-rat:check checkstyle:check japicmp:cmp
javadoc:javadoc spotbugs:check pmd:check pmd:cpd-check</defaultGoal>
<pluginManagement>
@@ -276,7 +284,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
- <!-- Don't allow test to run for more than 30 minutes -->
+ <argLine>${argLine} ${surefire.argline}</argLine>
+ <!-- Don't allow test to run for more than 30 minutes -->
<forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
<includes>
<include>**/Test*.java</include>
@@ -418,20 +427,12 @@
<activation>
<jdk>[16,)</jdk>
</activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <argLine>
- --illegal-access=permit
- --add-opens java.base/java.lang=ALL-UNNAMED
- </argLine>
- </configuration>
- </plugin>
- </plugins>
- </build>
+ <properties>
+ <surefire.argline>
+ --illegal-access=permit
+ --add-opens java.base/java.lang=ALL-UNNAMED
+ </surefire.argline>
+ </properties>
</profile>
</profiles>