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

commit b35611988b3647fc59b089e201bec00f199f27f3
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Mar 12 08:32:45 2022 -0500

    Let Powermock run on Java 17.
---
 pom.xml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/pom.xml b/pom.xml
index 0b61869..829e89e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -514,6 +514,35 @@
     </reporting>
 
     <profiles>
+      <profile>
+        <id>java17</id>
+        <!-- For testing with Powermock. -->
+        <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
+                  --add-opens java.base/java.net=ALL-UNNAMED
+                  --add-opens java.base/java.io=ALL-UNNAMED
+                  --add-opens java.base/java.util=ALL-UNNAMED
+                  --add-opens java.base/java.util.regex=ALL-UNNAMED
+                  --add-opens java.base/java.nio.charset=ALL-UNNAMED
+                  --add-opens java.base/sun.nio.cs=ALL-UNNAMED
+                  --add-opens java.logging/java.util.logging=ALL-UNNAMED
+                </argLine>
+              </configuration>
+            </plugin>
+          </plugins>
+        </build>
+      </profile>
+          
         <profile>
             <id>rc</id>
             <distributionManagement>

Reply via email to