From c243c6489fdac6d582888d4eb34de2efb6a2a713 Mon Sep 17 00:00:00 2001 From: psxjoy Date: Wed, 23 Jul 2025 16:49:21 +0800 Subject: [PATCH 01/10] chore: update pom.xml for improved formatting and add JDK 9+ profile --- pom.xml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index b4f92f0d2..a9d28a265 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ 3.5.3 true true - true + false 1.11.0 5.4.1 5.4.1 @@ -228,7 +228,9 @@ maven-surefire-plugin ${maven-surefire-plugin.version} - ${argLine} -Dfile.encoding=UTF-8 + + -Dfile.encoding=UTF-8 + @@ -413,8 +415,8 @@ - - + + true 4 @@ -445,4 +447,18 @@ + + + jdk9plus + + [9,) + + + + --add-opens=java.base/java.lang=ALL-UNNAMED + --add-opens=java.base/sun.reflect.annotation=ALL-UNNAMED + + + + From d5cd47d65f9c6b191bc015a74d7d1974a1d637f7 Mon Sep 17 00:00:00 2001 From: psxjoy Date: Wed, 23 Jul 2025 16:50:50 +0800 Subject: [PATCH 02/10] chore: update pom.xml for improved formatting and add JDK 9+ profile --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a9d28a265..c8f10a731 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ 3.5.3 true true - false + true 1.11.0 5.4.1 5.4.1 From 645c9220386a7bd646d7ea84b5d173ac300ef317 Mon Sep 17 00:00:00 2001 From: psxjoy Date: Wed, 23 Jul 2025 18:59:39 +0800 Subject: [PATCH 03/10] chore: update pom.xml to use variable for argLine configuration --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c8f10a731..bafd5c817 100644 --- a/pom.xml +++ b/pom.xml @@ -229,7 +229,7 @@ ${maven-surefire-plugin.version} - -Dfile.encoding=UTF-8 + ${argLine} -Dfile.encoding=UTF-8 From 696d1cd69ce3df5fc9c4592c3226b17f8b65590c Mon Sep 17 00:00:00 2001 From: psxjoy Date: Thu, 24 Jul 2025 01:11:02 +0800 Subject: [PATCH 04/10] chore: update pom.xml to use variable for argLine configuration --- .github/workflows/ci.yml | 4 ---- pom.xml | 7 ++----- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ba702d05..b8a55edd5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,11 +55,7 @@ jobs: restore-keys: | ${{ runner.os }}-m2 - name: Test with Maven - if: ${{ matrix.java == '8' }} run: ./mvnw test -B -Dmaven.test.skip=false - - name: Test with Maven - if: ${{ matrix.java != '8' }} - run: ./mvnw test -B -Dmaven.test.skip=false -DargLine="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.reflect.annotation=ALL-UNNAMED" - name: Publish Unit Test Results uses: EnricoMi/publish-unit-test-result-action@v2 if: (!cancelled()) diff --git a/pom.xml b/pom.xml index bafd5c817..6dd7c07c6 100644 --- a/pom.xml +++ b/pom.xml @@ -229,7 +229,7 @@ ${maven-surefire-plugin.version} - ${argLine} -Dfile.encoding=UTF-8 + ${surefireArgLine} -Dfile.encoding=UTF-8 @@ -454,10 +454,7 @@ [9,) - - --add-opens=java.base/java.lang=ALL-UNNAMED - --add-opens=java.base/sun.reflect.annotation=ALL-UNNAMED - + --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.reflect.annotation=ALL-UNNAMED From 7f97fb87dc28f46928c15dd3911adcdd54a81dde Mon Sep 17 00:00:00 2001 From: psxjoy Date: Thu, 24 Jul 2025 01:15:52 +0800 Subject: [PATCH 05/10] chore: update pom.xml to use variable for argLine configuration --- pom.xml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 6dd7c07c6..0f0150b4e 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ 3.5.3 true true - true + false 1.11.0 5.4.1 5.4.1 @@ -229,7 +229,7 @@ ${maven-surefire-plugin.version} - ${surefireArgLine} -Dfile.encoding=UTF-8 + ${surefireArgLine} @@ -457,5 +457,14 @@ --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.reflect.annotation=ALL-UNNAMED + + jdk8plus + + [8,9) + + + -Dfile.encoding=UTF-8 + + From ff5e50c880954fea82b30f22ec147263b6111a2f Mon Sep 17 00:00:00 2001 From: psxjoy Date: Thu, 24 Jul 2025 01:20:15 +0800 Subject: [PATCH 06/10] chore: update pom.xml to skip tests and add file encoding to surefireArgLine --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 0f0150b4e..1bbd9a62a 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ 3.5.3 true true - false + true 1.11.0 5.4.1 5.4.1 @@ -454,7 +454,7 @@ [9,) - --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.reflect.annotation=ALL-UNNAMED + --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/sun.reflect.annotation=ALL-UNNAMED -Dfile.encoding=UTF-8 From a00a6277af8a842f63afc946008b74ecd8271fda Mon Sep 17 00:00:00 2001 From: psxjoy Date: Thu, 24 Jul 2025 01:49:02 +0800 Subject: [PATCH 07/10] chore: update pom.xml to enable tests and modify JDK profiles --- pom.xml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 1bbd9a62a..157509fc7 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ 3.5.3 true true - true + false 1.11.0 5.4.1 5.4.1 @@ -458,12 +458,21 @@ - jdk8plus + jdk8v0 - [8,9) + 1.8 - -Dfile.encoding=UTF-8 + + + + + jdk8v1 + + 8 + + + From 62e879ad8604ad6b055a2fe3146410b645cf2ead Mon Sep 17 00:00:00 2001 From: psxjoy Date: Thu, 24 Jul 2025 01:52:39 +0800 Subject: [PATCH 08/10] chore: update pom.xml to enable tests and modify JDK profiles --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 157509fc7..ae87eb4bf 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ 3.5.3 true true - false + true 1.11.0 5.4.1 5.4.1 @@ -463,7 +463,7 @@ 1.8 - + -Dfile.encoding=UTF-8 @@ -472,7 +472,7 @@ 8 - + -Dfile.encoding=UTF-8 From d8625fe2fbd6a1f0674a6f71584b6745fb6acf2e Mon Sep 17 00:00:00 2001 From: Shuxin Pan Date: Fri, 25 Jul 2025 21:38:01 +0800 Subject: [PATCH 09/10] Apply suggestion from @tisonkun Co-authored-by: tison --- pom.xml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index ae87eb4bf..b11346606 100644 --- a/pom.xml +++ b/pom.xml @@ -458,7 +458,7 @@ - jdk8v0 + jdk8 1.8 @@ -466,14 +466,5 @@ -Dfile.encoding=UTF-8 - - jdk8v1 - - 8 - - - -Dfile.encoding=UTF-8 - - From 2185b7f31cbc329af889669cd2174a4a3ef66942 Mon Sep 17 00:00:00 2001 From: Shuxin Pan Date: Fri, 25 Jul 2025 21:39:13 +0800 Subject: [PATCH 10/10] Apply suggestion from @tisonkun Co-authored-by: tison --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b11346606..0397df485 100644 --- a/pom.xml +++ b/pom.xml @@ -229,7 +229,7 @@ ${maven-surefire-plugin.version} - ${surefireArgLine} + ${argLine} ${surefireArgLine}