Skip to content

Commit e87e7b2

Browse files
committed
java17
scala test apache 34 revert apache 34 java8 compatiblity compatible jdk11 java version 11 opens <iceberg.version>1.10.0</iceberg.version> revert iceberg 1.10.0 debug Revert "debug" This reverts commit 03e4cb0. macos ubuntu-24.04 zulu
1 parent 622234d commit e87e7b2

3 files changed

Lines changed: 44 additions & 3 deletions

File tree

.github/workflows/core-hadoop3-ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,15 @@ jobs:
3737
runs-on: ubuntu-latest
3838
strategy:
3939
matrix:
40-
jdk: [ '8', '11' ]
40+
jdk: [ 8, 11, 17 ]
4141
spark: [ '3.3', '3.5' ]
42+
exclude:
43+
- jdk: 8
44+
spark: '3.5'
45+
- jdk: 11
46+
spark: '3.5'
47+
- jdk: 17
48+
spark: '3.3'
4249
name: Build Amoro with JDK ${{ matrix.jdk }} Spark-${{ matrix.spark }}
4350
steps:
4451
- uses: actions/checkout@v3
@@ -47,7 +54,7 @@ jobs:
4754
uses: actions/setup-java@v3
4855
with:
4956
java-version: ${{ matrix.jdk }}
50-
distribution: 'temurin'
57+
distribution: 'zulu'
5158
cache: maven
5259

5360
- name: Validate checkstyle first

amoro-format-mixed/amoro-mixed-flink/amoro-mixed-flink-common/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,6 @@
426426
<value>org.apache.amoro.listener.AmoroRunListener</value>
427427
</property>
428428
</properties>
429-
<argLine>-verbose:class</argLine>
430429
</configuration>
431430
</plugin>
432431
<plugin>

pom.xml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,27 @@
159159
<rocksdb-dependency-scope>compile</rocksdb-dependency-scope>
160160
<lucene-dependency-scope>compile</lucene-dependency-scope>
161161
<aliyun-sdk-dependency-scope>provided</aliyun-sdk-dependency-scope>
162+
163+
<!-- for JDK-17 test-->
164+
<extraJavaTestArgs>-XX:+IgnoreUnrecognizedVMOptions
165+
--add-opens=java.base/java.lang=ALL-UNNAMED
166+
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
167+
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
168+
--add-opens=java.base/java.io=ALL-UNNAMED
169+
--add-opens=java.base/java.net=ALL-UNNAMED
170+
--add-opens=java.base/java.nio=ALL-UNNAMED
171+
--add-opens=java.base/java.util=ALL-UNNAMED
172+
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
173+
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
174+
--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED
175+
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
176+
--add-opens=java.base/sun.nio.cs=ALL-UNNAMED
177+
--add-opens=java.base/sun.security.action=ALL-UNNAMED
178+
--add-opens=java.base/sun.security.tools.keytool=ALL-UNNAMED
179+
--add-opens=java.base/sun.security.x509=ALL-UNNAMED
180+
--add-opens=java.base/sun.util.calendar=ALL-UNNAMED
181+
-Djdk.reflect.useDirectMethodHandle=false
182+
-Dio.netty.tryReflectionSetAccessible=true</extraJavaTestArgs>
162183
</properties>
163184

164185
<dependencies>
@@ -1076,6 +1097,9 @@
10761097
<groupId>org.apache.maven.plugins</groupId>
10771098
<artifactId>maven-surefire-plugin</artifactId>
10781099
<version>${maven-surefire-plugin.version}</version>
1100+
<configuration>
1101+
<argLine>${argLine} -ea -Xmx4g -Xss4m -XX:MaxMetaspaceSize=2g -XX:ReservedCodeCacheSize=128m ${extraJavaTestArgs} -verbose:class</argLine>
1102+
</configuration>
10791103
</plugin>
10801104
<plugin>
10811105
<groupId>org.apache.maven.plugins</groupId>
@@ -1449,9 +1473,20 @@
14491473
<jdk>[11,)</jdk>
14501474
</activation>
14511475
<properties>
1476+
<java.source.version>11</java.source.version>
14521477
<java.target.version>11</java.target.version>
14531478
</properties>
14541479
</profile>
1480+
<profile>
1481+
<id>java17</id>
1482+
<activation>
1483+
<jdk>17</jdk>
1484+
</activation>
1485+
<properties>
1486+
<java.source.version>17</java.source.version>
1487+
<java.target.version>17</java.target.version>
1488+
</properties>
1489+
</profile>
14551490
<profile>
14561491
<id>spark-3.3</id>
14571492
<properties>

0 commit comments

Comments
 (0)