This is an automated email from the ASF dual-hosted git repository.

yx9o pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new a7244f8070c Support building Example module with OpenJDK 23 (#33224)
a7244f8070c is described below

commit a7244f8070c13e67116a64dc25f5923221f2863f
Author: Ling Hengqian <[email protected]>
AuthorDate: Sun Oct 13 00:12:47 2024 +0800

    Support building Example module with OpenJDK 23 (#33224)
---
 RELEASE-NOTES.md                                   |  1 +
 .../common-config/builtin-algorithm/expr.cn.md     | 11 ++------
 .../common-config/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 de56c387722..4e99a81cef2 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 d8de227d58d..e1adee6f297 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
     <dependency>
         <groupId>org.graalvm.polyglot</groupId>
         <artifactId>polyglot</artifactId>
-        <version>24.0.2</version>
+        <version>24.1.0</version>
     </dependency>
     <dependency>
         <groupId>org.graalvm.polyglot</groupId>
-        <artifactId>java-community</artifactId>
-        <version>24.0.2</version>
+        <artifactId>java</artifactId>
+        <version>24.1.0</version>
         <type>pom</type>
     </dependency>
-    <dependency>
-        <groupId>org.graalvm.espresso</groupId>
-        <artifactId>espresso-runtime-resources-linux-amd64</artifactId>
-        <version>24.0.2</version>
-    </dependency>
 </dependencies>
 ```
 
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 34056915b42..6d122e76f43 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
     <dependency>
         <groupId>org.graalvm.polyglot</groupId>
         <artifactId>polyglot</artifactId>
-        <version>24.0.2</version>
+        <version>24.1.0</version>
     </dependency>
     <dependency>
         <groupId>org.graalvm.polyglot</groupId>
-        <artifactId>java-community</artifactId>
-        <version>24.0.2</version>
+        <artifactId>java</artifactId>
+        <version>24.1.0</version>
         <type>pom</type>
     </dependency>
-    <dependency>
-        <groupId>org.graalvm.espresso</groupId>
-        <artifactId>espresso-runtime-resources-linux-amd64</artifactId>
-        <version>24.0.2</version>
-    </dependency>
 </dependencies>
 ```
 
diff --git a/examples/pom.xml b/examples/pom.xml
index 5f5fed31a06..f67128d793f 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -46,7 +46,7 @@
         <h2.version>2.2.224</h2.version>
         <slf4j.version>1.7.7</slf4j.version>
         <logback.version>1.2.13</logback.version>
-        <lombok.version>1.18.30</lombok.version>
+        <lombok.version>1.18.34</lombok.version>
         <mybatis.version>3.5.9</mybatis.version>
         <mybatis-spring.version>2.0.5</mybatis-spring.version>
         <mybatis-spring-boot.version>2.1.3</mybatis-spring-boot.version>
@@ -60,7 +60,7 @@
         <seata.version>1.6.1</seata.version>
         
         <apache-rat-plugin.version>0.12</apache-rat-plugin.version>
-        <maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
+        <maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
         <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
         <maven-source-plugin.version>3.2.1</maven-source-plugin.version>
         <freemarker.version>2.3.31</freemarker.version>
@@ -338,9 +338,9 @@
     
     <profiles>
         <profile>
-            <id>jdk11+</id>
+            <id>jdk11-22</id>
             <activation>
-                <jdk>[11,)</jdk>
+                <jdk>[11,23)</jdk>
             </activation>
             <properties>
                 <annotation-api.version>1.3.2</annotation-api.version>
@@ -353,6 +353,23 @@
                 </dependency>
             </dependencies>
         </profile>
+        <profile>
+            <id>jdk23+</id>
+            <activation>
+                <jdk>[23,)</jdk>
+            </activation>
+            <properties>
+                <annotation-api.version>1.3.2</annotation-api.version>
+                <maven.compiler.proc>full</maven.compiler.proc>
+            </properties>
+            <dependencies>
+                <dependency>
+                    <groupId>javax.annotation</groupId>
+                    <artifactId>javax.annotation-api</artifactId>
+                    <version>${annotation-api.version}</version>
+                </dependency>
+            </dependencies>
+        </profile>
     </profiles>
     
     <build>
diff --git a/infra/expr/type/espresso/pom.xml b/infra/expr/type/espresso/pom.xml
index bf168404e3a..d988acac53b 100644
--- a/infra/expr/type/espresso/pom.xml
+++ b/infra/expr/type/espresso/pom.xml
@@ -51,17 +51,11 @@
         </dependency>
         <dependency>
             <groupId>org.graalvm.polyglot</groupId>
-            <artifactId>java-community</artifactId>
+            <artifactId>java</artifactId>
             <version>${graal-sdk.version}</version>
             <type>pom</type>
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>org.graalvm.espresso</groupId>
-            <artifactId>espresso-runtime-resources-linux-amd64</artifactId>
-            <version>${graal-sdk.version}</version>
-            <scope>test</scope>
-        </dependency>
     </dependencies>
     
     <build>
diff --git a/pom.xml b/pom.xml
index ae0bae5c2a6..043cb612588 100644
--- a/pom.xml
+++ b/pom.xml
@@ -144,7 +144,7 @@
         <testcontainers.version>1.20.1</testcontainers.version>
         <commons-csv.version>1.9.0</commons-csv.version>
         
-        <graal-sdk.version>24.0.2</graal-sdk.version>
+        <graal-sdk.version>24.1.0</graal-sdk.version>
         <jedis.version>4.4.6</jedis.version>
         
         <!-- 3rd party library plugin versions -->
@@ -988,9 +988,36 @@
     
     <profiles>
         <profile>
-            <id>jdk11+</id>
+            <id>jdk11-22</id>
             <activation>
-                <jdk>[11,)</jdk>
+                <jdk>[11,23)</jdk>
+            </activation>
+            <properties>
+                <maven.compiler.release>8</maven.compiler.release>
+            </properties>
+            <build>
+                <pluginManagement>
+                    <plugins>
+                        <plugin>
+                            <artifactId>maven-surefire-plugin</artifactId>
+                            <configuration>
+                                <argLine>--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</argLine>
+                            </configuration>
+                        </plugin>
+                        <plugin>
+                            <artifactId>maven-failsafe-plugin</artifactId>
+                            <configuration>
+                                <argLine>--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</argLine>
+                            </configuration>
+                        </plugin>
+                    </plugins>
+                </pluginManagement>
+            </build>
+        </profile>
+        <profile>
+            <id>jdk23+</id>
+            <activation>
+                <jdk>[23,)</jdk>
             </activation>
             <properties>
                 <maven.compiler.release>8</maven.compiler.release>

Reply via email to