You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/05/26 21:43:39 UTC
[commons-pool] branch master updated: Hack to get the Java 16 and
17 builds passing.
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 ff6f46d Hack to get the Java 16 and 17 builds passing.
ff6f46d is described below
commit ff6f46deec3bbc0c0212f6e931cc26c011200812
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed May 26 17:43:36 2021 -0400
Hack to get the Java 16 and 17 builds passing.
---
.github/workflows/maven.yml | 4 +---
pom.xml | 23 ++++++++++++++++++++++-
2 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 6591a9f..7cde73d 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -24,11 +24,9 @@ jobs:
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
- java: [ 8, 11 ]
+ java: [ 8, 11, 16 ]
experimental: [false]
include:
- - java: 16
- experimental: true
- java: 17-ea
experimental: true
diff --git a/pom.xml b/pom.xml
index 037deac..0fb2bda 100644
--- a/pom.xml
+++ b/pom.xml
@@ -279,6 +279,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
+ <version>3.0.0-M5</version>
<configuration>
<!-- Don't allow test to run for more than 30 minutes -->
<forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
@@ -441,7 +442,7 @@
</properties>
</profile>
<profile>
- <id>java11+</id>
+ <id>java11</id>
<activation>
<jdk>[11,)</jdk>
</activation>
@@ -452,6 +453,26 @@
<maven.javadoc.skip>true</maven.javadoc.skip>
</properties>
</profile>
+ <profile>
+ <id>java16</id>
+ <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>
+ </profile>
</profiles>
</project>