This is an automated email from the ASF dual-hosted git repository. struberg pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/deltaspike.git
commit ad9e533791ac9145a682a9120b03591854c2b195 Author: Jeremy Landis <[email protected]> AuthorDate: Sun Jul 3 23:08:31 2022 -0400 Add java 17 support with add opens to tests - Use surefire 2.22.2 - Add opens for java.lang, java.util, and sun.rmi.transport --- deltaspike/parent/pom.xml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/deltaspike/parent/pom.xml b/deltaspike/parent/pom.xml index a7f9b3c7..994d0372 100644 --- a/deltaspike/parent/pom.xml +++ b/deltaspike/parent/pom.xml @@ -95,7 +95,7 @@ <geronimo-jta-1.1-spec.version>1.1.1</geronimo-jta-1.1-spec.version> <maven.jetty.plugin.version>7.1.5.v20100705</maven.jetty.plugin.version> - <maven.surefire.plugin.version>2.19.1</maven.surefire.plugin.version> + <maven.surefire.plugin.version>2.22.2</maven.surefire.plugin.version> <maven.bundle.plugin.version>3.5.0</maven.bundle.plugin.version> <maven.jar.plugin.version>3.1.2</maven.jar.plugin.version> <maven.dependency.plugin.version>2.4</maven.dependency.plugin.version> @@ -241,6 +241,29 @@ </plugins> </build> </profile> + <profile> + <id>jdk17+</id> + <activation> + <jdk>[17,)</jdk> + </activation> + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <argLine> + --add-opens java.base/java.lang=ALL-UNNAMED + --add-opens java.base/java.util=ALL-UNNAMED + --add-opens java.rmi/sun.rmi.transport=ALL-UNNAMED + </argLine> + </configuration> + </plugin> + </plugins> + </pluginManagement> + </build> + </profile> </profiles>
