浏览代码

github actions should use Java 21

nossr50 2 月之前
父节点
当前提交
571a60f7a7
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      .github/workflows/maven.yml

+ 3 - 3
.github/workflows/maven.yml

@@ -31,13 +31,13 @@ jobs:
     - name: Checkout repository
     - name: Checkout repository
       uses: actions/checkout@v4
       uses: actions/checkout@v4
 
 
-    # 2. Setup Java 17 JDK (Adopt)
-    - name: Java 17 setup
+    # 2. Setup Java 21 JDK (Adopt)
+    - name: Java 21 setup
       uses: actions/setup-java@v4
       uses: actions/setup-java@v4
       with:
       with:
         distribution: 'adopt'
         distribution: 'adopt'
         java-package: jdk
         java-package: jdk
-        java-version: '17'
+        java-version: '21'
 
 
     # 3. Setup local Maven package cache to speed up building
     # 3. Setup local Maven package cache to speed up building
     - name: Cache Maven packages
     - name: Cache Maven packages