Align pom with java-11-experimental master
authorLee Rhodes <leerho@users.noreply.github.com>
Mon, 29 Mar 2021 22:25:35 +0000 (15:25 -0700)
committerLee Rhodes <leerho@users.noreply.github.com>
Mon, 29 Mar 2021 22:25:35 +0000 (15:25 -0700)
pom.xml

diff --git a/pom.xml b/pom.xml
index b95de49fe1250cda2ed79deb28183c210337a4a3..ee7dbc8d9a5e149392dfe813e866cca4384b249b 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -82,8 +82,10 @@ under the License.
   </developers>
 
   <properties>
-
     <!-- Test -->
+    <protobuf-java.version>3.6.0</protobuf-java.version>
+    <!-- Used for UTF8 testing -->
+    <zero-allocation-hashing.version>0.8</zero-allocation-hashing.version>
     <testng.version>7.4.0</testng.version>
 
     <!-- System-wide properties -->
@@ -154,6 +156,20 @@ under the License.
   <dependencies>
 
     <!-- Test Scope -->
+    <dependency>
+      <!-- Used for UTF8 testing -->
+      <groupId>com.google.protobuf</groupId>
+      <artifactId>protobuf-java</artifactId>
+      <version>${protobuf-java.version}</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <!-- Used for xxHash testing -->
+      <groupId>net.openhft</groupId>
+      <artifactId>zero-allocation-hashing</artifactId>
+      <version>${zero-allocation-hashing.version}</version>
+      <scope>test</scope>
+    </dependency>
     <dependency>
       <groupId>org.testng</groupId>
       <artifactId>testng</artifactId>
@@ -217,6 +233,10 @@ under the License.
           <version>${maven-javadoc-plugin.version}</version>
           <configuration>
             <docfilessubdirs>true</docfilessubdirs>
+            <additionalJOptions>
+              <additionalJOption>--add-exports=java.base/sun.nio.ch=ALL-UNNAMED</additionalJOption>
+              <additionalJOption>--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED</additionalJOption>
+            </additionalJOptions>
           </configuration>
           <executions>
             <execution>
@@ -320,19 +340,23 @@ under the License.
             <trimStackTrace>false</trimStackTrace>
             <useManifestOnlyJar>false</useManifestOnlyJar>
             <redirectTestOutputToFile>true</redirectTestOutputToFile>
-<!--        <argLine>
-              - -add-modules jdk.incubator.foreign
-            </argLine> -->
+            <argLine>
+              --add-opens java.base/java.nio=ALL-UNNAMED
+              --add-opens java.base/java.lang=ALL-UNNAMED
+              --add-opens java.base/jdk.internal.misc=ALL-UNNAMED
+              --add-opens java.base/jdk.internal.ref=ALL-UNNAMED
+              --add-opens java.base/sun.nio.ch=ALL-UNNAMED
+            </argLine>
           </configuration>
         </plugin>
-
+        <!--
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-toolchains-plugin</artifactId>
           <version>${maven-toolchains-plugin.version}</version>
           <configuration>
             <toolchains>
-              <jdk><version>8</version></jdk>
+              <jdk><version>${java.version}</version></jdk>
             </toolchains>
           </configuration>
           <executions>
@@ -341,7 +365,7 @@ under the License.
             </execution>
           </executions>
         </plugin>
-
+        -->
         <plugin>
           <!-- Generates code coverage report from website. -->
           <groupId>org.jacoco</groupId>
@@ -370,12 +394,6 @@ under the License.
           <version>${coveralls-maven-plugin.version}</version>
         </plugin>
 
-        <plugin>
-          <groupId>pl.project13.maven</groupId>
-          <artifactId>git-commit-id-plugin</artifactId>
-          <version>${git-commit-id-plugin.version}</version>
-        </plugin>
-
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-compiler-plugin</artifactId>
@@ -383,12 +401,21 @@ under the License.
           <configuration>
             <source>${maven.compiler.source}</source>
             <target>${maven.compiler.target}</target>
-<!--        <compilerArgs>
-              <arg>- -add-modules jdk.incubator.foreign</arg>
-            </compilerArgs> -->
+            <compilerArgs>
+              <arg>--add-exports</arg>
+              <arg>java.base/sun.nio.ch=ALL-UNNAMED</arg>
+              <arg>--add-exports</arg>
+              <arg>java.base/jdk.internal.ref=ALL-UNNAMED</arg>
+            </compilerArgs>
           </configuration>
         </plugin>
 
+        <plugin>
+          <groupId>pl.project13.maven</groupId>
+          <artifactId>git-commit-id-plugin</artifactId>
+          <version>${git-commit-id-plugin.version}</version>
+        </plugin>
+
       </plugins>
     </pluginManagement>
     <plugins>