瀏覽代碼

Fix #1923 (OSSRH artifacts are build with different java version) (#1924)

Ali-RS 2 年之前
父節點
當前提交
c97a6d364d
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      .github/workflows/main.yml

+ 7 - 0
.github/workflows/main.yml

@@ -304,6 +304,13 @@ jobs:
         with:
           fetch-depth: 1
 
+      # Setup jdk 17 used for building Sonatype OSSRH artifacts
+      - name: Setup the java environment
+        uses: actions/setup-java@v3
+        with:
+          distribution: 'temurin'
+          java-version: '17'
+
       # Download all the stuff...
       - name: Download maven artifacts
         uses: actions/download-artifact@master