From a7244f8070c13e67116a64dc25f5923221f2863f Mon Sep 17 00:00:00 2001 From: Ling Hengqian Date: Sun, 13 Oct 2024 00:12:47 +0800 Subject: [PATCH] Support building Example module with OpenJDK 23 (#33224) --- RELEASE-NOTES.md | 1 + .../builtin-algorithm/expr.cn.md | 11 ++----- .../builtin-algorithm/expr.en.md | 11 ++----- examples/pom.xml | 25 +++++++++++--- infra/expr/type/espresso/pom.xml | 8 +---- pom.xml | 33 +++++++++++++++++-- 6 files changed, 59 insertions(+), 30 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index de56c387722c1..4e99a81cef241 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -44,6 +44,7 @@ 1. Infra: Enable Safe Composition of Metadata for ShardingSphere Proxy Native - [#33179](https://github.com/apache/shardingsphere/pull/33179) 1. Infra: Support compiling and using ShardingSphere under OpenJDK 23 - [#33025](https://github.com/apache/shardingsphere/pull/33025) 1. Hive: Support Hive integration module to connect to HiveServer2 4.0.1 - [#33212](https://github.com/apache/shardingsphere/pull/33212) +1. Infra: Support building Example module with OpenJDK 23 - [#33224](https://github.com/apache/shardingsphere/pull/33224) ### Bug Fix diff --git a/docs/document/content/user-manual/common-config/builtin-algorithm/expr.cn.md b/docs/document/content/user-manual/common-config/builtin-algorithm/expr.cn.md index d8de227d58d26..e1adee6f29716 100644 --- a/docs/document/content/user-manual/common-config/builtin-algorithm/expr.cn.md +++ b/docs/document/content/user-manual/common-config/builtin-algorithm/expr.cn.md @@ -90,19 +90,14 @@ Truffle 与 JDK 的向后兼容性矩阵位于 https://medium.com/graalvm/40027a org.graalvm.polyglot polyglot - 24.0.2 + 24.1.0 org.graalvm.polyglot - java-community - 24.0.2 + java + 24.1.0 pom - - org.graalvm.espresso - espresso-runtime-resources-linux-amd64 - 24.0.2 - ``` diff --git a/docs/document/content/user-manual/common-config/builtin-algorithm/expr.en.md b/docs/document/content/user-manual/common-config/builtin-algorithm/expr.en.md index 34056915b4200..6d122e76f43d3 100644 --- a/docs/document/content/user-manual/common-config/builtin-algorithm/expr.en.md +++ b/docs/document/content/user-manual/common-config/builtin-algorithm/expr.en.md @@ -100,19 +100,14 @@ Truffle's backward compatibility matrix with the JDK is located at https://mediu org.graalvm.polyglot polyglot - 24.0.2 + 24.1.0 org.graalvm.polyglot - java-community - 24.0.2 + java + 24.1.0 pom - - org.graalvm.espresso - espresso-runtime-resources-linux-amd64 - 24.0.2 - ``` diff --git a/examples/pom.xml b/examples/pom.xml index 5f5fed31a0614..f67128d793f9d 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -46,7 +46,7 @@ 2.2.224 1.7.7 1.2.13 - 1.18.30 + 1.18.34 3.5.9 2.0.5 2.1.3 @@ -60,7 +60,7 @@ 1.6.1 0.12 - 3.3 + 3.13.0 3.2.0 3.2.1 2.3.31 @@ -338,9 +338,9 @@ - jdk11+ + jdk11-22 - [11,) + [11,23) 1.3.2 @@ -353,6 +353,23 @@ + + jdk23+ + + [23,) + + + 1.3.2 + full + + + + javax.annotation + javax.annotation-api + ${annotation-api.version} + + + diff --git a/infra/expr/type/espresso/pom.xml b/infra/expr/type/espresso/pom.xml index bf168404e3a8f..d988acac53b06 100644 --- a/infra/expr/type/espresso/pom.xml +++ b/infra/expr/type/espresso/pom.xml @@ -51,17 +51,11 @@ org.graalvm.polyglot - java-community + java ${graal-sdk.version} pom test - - org.graalvm.espresso - espresso-runtime-resources-linux-amd64 - ${graal-sdk.version} - test - diff --git a/pom.xml b/pom.xml index ae0bae5c2a695..043cb612588f5 100644 --- a/pom.xml +++ b/pom.xml @@ -144,7 +144,7 @@ 1.20.1 1.9.0 - 24.0.2 + 24.1.0 4.4.6 @@ -988,9 +988,36 @@ - jdk11+ + jdk11-22 - [11,) + [11,23) + + + 8 + + + + + + maven-surefire-plugin + + --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/sun.net=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED + + + + maven-failsafe-plugin + + --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/sun.net=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED + + + + + + + + jdk23+ + + [23,) 8