This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-pool.git
The following commit(s) were added to refs/heads/master by this push:
new 9ad041ab Set a baseline for JaCoCo checks
9ad041ab is described below
commit 9ad041abe948296a78428db465abaa6c87819235
Author: Gary Gregory <[email protected]>
AuthorDate: Wed May 8 19:53:57 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 560b3e94..b52692bc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -210,8 +210,16 @@
<japicmp.skip>true</japicmp.skip>
<spotbugs.skip>false</spotbugs.skip>
<animal.sniffer.skip>true</animal.sniffer.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.84</commons.jacoco.branchRatio>
+ <commons.jacoco.lineRatio>0.86</commons.jacoco.lineRatio>
+ <commons.jacoco.complexityRatio>0.81</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>
@@ -275,7 +283,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>
@@ -424,20 +433,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>