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 2023/03/19 20:14:38 UTC
[commons-digester] branch master updated: Allow to build on Java 17
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-digester.git
The following commit(s) were added to refs/heads/master by this push:
new 060997b2 Allow to build on Java 17
060997b2 is described below
commit 060997b2bc1b621253f3c8d41338ea91dd9f013a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Mar 19 16:14:34 2023 -0400
Allow to build on Java 17
---
pom.xml | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/pom.xml b/pom.xml
index 1e4bcb4c..a6304768 100644
--- a/pom.xml
+++ b/pom.xml
@@ -404,6 +404,26 @@
</site>
</distributionManagement>
</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>
+ --illegal-access=permit
+ --add-opens java.base/java.lang=ALL-UNNAMED
+ </argLine>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>