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 2024/02/17 22:51:30 UTC

(commons-compress) branch master updated: Fix tests on Java 17 and up

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-compress.git


The following commit(s) were added to refs/heads/master by this push:
     new 169b03dcc Fix tests on Java 17 and up
169b03dcc is described below

commit 169b03dccc3a659713ba493d66f11f506554f56e
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Feb 17 17:51:25 2024 -0500

    Fix tests on Java 17 and up
---
 pom.xml | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index cc6f1b89b..dd23df35b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -514,7 +514,25 @@ Brotli, Zstandard and ar, cpio, jar, tar, zip, dump, 7z, arj.
         <coveralls.skip>true</coveralls.skip>
       </properties>
     </profile>
-
+    <profile>
+      <id>java17</id>
+      <activation>
+        <jdk>[17,)</jdk>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              <argLine>
+                --add-opens java.base/java.io=ALL-UNNAMED                     
+              </argLine>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 
   <developers>