Skip to content

Commit

Permalink
Ensure running DumpUtilityTest under Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
cljohnso committed Sep 20, 2023
1 parent 69a5ab7 commit 285ea0d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2020 Terracotta, Inc., a Software AG company.
Copyright 2020-2023 Terracotta, Inc., a Software AG company.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -188,7 +188,7 @@
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
<version>3.1.2</version>
<configuration>
<trimStackTrace>false</trimStackTrace>
</configuration>
Expand Down
27 changes: 26 additions & 1 deletion tools/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2020 Terracotta, Inc., a Software AG company.
Copyright 2020-2023 Terracotta, Inc., a Software AG company.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -72,6 +72,31 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<!-- DumpUtilityTest needs add-opens option for complete testing under Java 17+. -->
<id>java17</id>
<configuration>
<includes>
<include>org.terracotta.utilities.io.buffer.DumpUtilityTest</include>
</includes>
<argLine>--add-opens java.base/java.nio=ALL-UNNAMED</argLine>
<reportNameSuffix>java17</reportNameSuffix>
<jdkToolchain>
<version>1.17</version>
</jdkToolchain>
</configuration>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
Expand Down

0 comments on commit 285ea0d

Please sign in to comment.