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

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


The following commit(s) were added to refs/heads/master by this push:
     new 756de29e6 Block `elasticjob-test-native` module from compiling on JDK 
8 to JDK16 (#2427)
756de29e6 is described below

commit 756de29e677ce897c6e965715f6a2f3be3ebffea
Author: Ling Hengqian <[email protected]>
AuthorDate: Mon Aug 12 14:27:39 2024 +0800

    Block `elasticjob-test-native` module from compiling on JDK 8 to JDK16 
(#2427)
---
 .github/workflows/graalvm.yml                              |  3 ++-
 .github/workflows/maven.yml                                |  7 +++----
 .github/workflows/required-check.yml                       |  3 +++
 .../user-manual/configuration/graalvm-native-image.cn.md   |  4 ++--
 .../user-manual/configuration/graalvm-native-image.en.md   |  4 ++--
 pom.xml                                                    |  3 ---
 test/native/pom.xml                                        |  3 ++-
 test/pom.xml                                               | 14 +++++++++++++-
 8 files changed, 27 insertions(+), 14 deletions(-)

diff --git a/.github/workflows/graalvm.yml b/.github/workflows/graalvm.yml
index b396737ff..f57cd810d 100644
--- a/.github/workflows/graalvm.yml
+++ b/.github/workflows/graalvm.yml
@@ -28,6 +28,7 @@ on:
 
 jobs:
   build:
+    if: github.repository == 'apache/shardingsphere-elasticjob'
     strategy:
       matrix:
         java: [ '22.0.2' ]
@@ -45,4 +46,4 @@ jobs:
           native-image-job-reports: 'true'
       - name: Run nativeTest with GraalVM CE for ${{ matrix.java-version }}
         continue-on-error: true
-        run: ./mvnw -PnativeTestInElasticJob -T1C -B -e 
-Dspring-boot-dependencies.version=3.3.2 clean test
+        run: ./mvnw -PnativeTestInElasticJob -T1C -B -e clean test
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 8bc9771b2..9f1c5bbfb 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -26,21 +26,20 @@ on:
 
 jobs:
   build:
+    if: github.repository == 'apache/shardingsphere-elasticjob'
     strategy:
       matrix:
         java: [ 8, 17, 21, 22 ]
         os: [ 'windows-latest', 'macos-latest', 'ubuntu-latest' ]
-
     runs-on: ${{ matrix.os }}
-
     steps:
       - name: Configure Git
         if: matrix.os == 'windows-latest'
         run: |
           git config --global core.longpaths true
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - name: Set up JDK ${{ matrix.java }}
-        uses: actions/setup-java@v3
+        uses: actions/setup-java@v4
         with:
           distribution: 'zulu'
           java-version: ${{ matrix.java }}
diff --git a/.github/workflows/required-check.yml 
b/.github/workflows/required-check.yml
index 229dc8df4..4abcc4acf 100644
--- a/.github/workflows/required-check.yml
+++ b/.github/workflows/required-check.yml
@@ -29,6 +29,7 @@ concurrency:
 jobs:
   check-checkstyle:
     name: Check - CheckStyle
+    if: github.repository == 'apache/shardingsphere-elasticjob'
     runs-on: ubuntu-latest
     timeout-minutes: 10
     steps:
@@ -38,6 +39,7 @@ jobs:
 
   check-spotless:
     name: Check - Spotless
+    if: github.repository == 'apache/shardingsphere-elasticjob'
     runs-on: ubuntu-latest
     timeout-minutes: 10
     steps:
@@ -47,6 +49,7 @@ jobs:
 
   check-license:
     name: Check - License
+    if: github.repository == 'apache/shardingsphere-elasticjob'
     runs-on: ubuntu-latest
     timeout-minutes: 10
     steps:
diff --git a/docs/content/user-manual/configuration/graalvm-native-image.cn.md 
b/docs/content/user-manual/configuration/graalvm-native-image.cn.md
index 79ca6f43b..560c0f212 100644
--- a/docs/content/user-manual/configuration/graalvm-native-image.cn.md
+++ b/docs/content/user-manual/configuration/graalvm-native-image.cn.md
@@ -256,7 +256,7 @@ sudo apt-get install build-essential zlib1g-dev -y
 
 git clone [email protected]:apache/shardingsphere-elasticjob.git
 cd ./shardingsphere-elasticjob/
-./mvnw -PnativeTestInElasticJob -T1C -e 
-Dspring-boot-dependencies.version=3.3.2 clean test
+./mvnw -PnativeTestInElasticJob -T1C -e clean test
 ```
 
 当贡献者发现缺少与 ElasticJob 无关的第三方库的 GraalVM Reachability Metadata 时,应当在
@@ -285,5 +285,5 @@ ElasticJob 定义了 `generateMetadata` 的 Maven Profile 用于在 
GraalVM JIT
 ```bash
 git clone [email protected]:apache/shardingsphere.git
 cd ./shardingsphere/
-./mvnw -PgenerateMetadata -DskipNativeTests -e -T1C 
-Dspring-boot-dependencies.version=3.3.2 clean test native:metadata-copy
+./mvnw -PgenerateMetadata -DskipNativeTests -e -T1C clean test 
native:metadata-copy
 ```
diff --git a/docs/content/user-manual/configuration/graalvm-native-image.en.md 
b/docs/content/user-manual/configuration/graalvm-native-image.en.md
index fb86d608e..4353929cb 100644
--- a/docs/content/user-manual/configuration/graalvm-native-image.en.md
+++ b/docs/content/user-manual/configuration/graalvm-native-image.en.md
@@ -259,7 +259,7 @@ sudo apt-get install build-essential zlib1g-dev -y
 
 git clone [email protected]:apache/shardingsphere-elasticjob.git
 cd ./shardingsphere-elasticjob/
-./mvnw -PnativeTestInElasticJob -T1C -e 
-Dspring-boot-dependencies.version=3.3.2 clean test
+./mvnw -PnativeTestInElasticJob -T1C -e clean test
 ```
 
 When contributors find that GraalVM Reachability Metadata for third-party 
libraries not related to ElasticJob is missing, 
@@ -289,5 +289,5 @@ contributors should place it in the classpath of the 
shardingsphere-test-native
 ```bash
 git clone [email protected]:apache/shardingsphere.git
 cd ./shardingsphere/
-./mvnw -PgenerateMetadata -DskipNativeTests -e -T1C 
-Dspring-boot-dependencies.version=3.3.2 clean test native:metadata-copy
+./mvnw -PgenerateMetadata -DskipNativeTests -e -T1C clean test 
native:metadata-copy
 ```
diff --git a/pom.xml b/pom.xml
index 4bc966d9d..9231ff2dc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -757,9 +757,6 @@
             <activation>
                 <jdk>[11,)</jdk>
             </activation>
-            <properties>
-                <maven.compiler.release>8</maven.compiler.release>
-            </properties>
             <build>
                 <pluginManagement>
                     <plugins>
diff --git a/test/native/pom.xml b/test/native/pom.xml
index 1370b8b48..d031f4f76 100644
--- a/test/native/pom.xml
+++ b/test/native/pom.xml
@@ -28,7 +28,8 @@
     
     <properties>
         <maven.deploy.skip>true</maven.deploy.skip>
-        <!--TODO Unfortunately, ElasticJob is still using Slf4j API 1.7.36 -->
+        <!--TODO Blocked by 
https://github.com/apache/shardingsphere-elasticjob/issues/2425 -->
+        
<spring-boot-dependencies.version>3.3.2</spring-boot-dependencies.version>
         <slf4j.version>2.0.13</slf4j.version>
         <logback.version>1.5.6</logback.version>
     </properties>
diff --git a/test/pom.xml b/test/pom.xml
index 4d6d5e326..460ae982d 100644
--- a/test/pom.xml
+++ b/test/pom.xml
@@ -30,6 +30,18 @@
     <modules>
         <module>e2e</module>
         <module>util</module>
-        <module>native</module>
     </modules>
+    
+    <profiles>
+        <!-- Block `elasticjob-test-native` module from compiling on JDK 8 to 
JDK16 -->
+        <profile>
+            <id>jdk17+</id>
+            <activation>
+                <jdk>[17,)</jdk>
+            </activation>
+            <modules>
+                <module>native</module>
+            </modules>
+        </profile>
+    </profiles>
 </project>

Reply via email to