From 3627b9a957f40d6e04365ae762e59435571fcb54 Mon Sep 17 00:00:00 2001 From: Krakenied Date: Sun, 28 Apr 2024 08:22:31 +0200 Subject: Update to Paper-API 1.20.5 Java 21 is now required Add java-downgrader plugin to support older Java versions Migrate shadow from com.github.johnrengelman.shadow to io.github.goooler.shadow to fix the project compilation using Java 21 and Gradle 8.7 https://github.com/johnrengelman/shadow/pull/876 --- .github/workflows/build.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9003010c..0cda7c2d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ jobs: matrix: os: [ubuntu-latest] distribution: [temurin] - java-version: ["17"] + java-version: ["21"] runs-on: ${{ matrix.os }} if: "!startsWith(github.event.commits[0].message, '[ci-skip]')" steps: @@ -25,9 +25,17 @@ jobs: **/gradle-wrapper.properties - name: Build with Gradle run: ./gradlew allJar --no-daemon --stacktrace - - name: Upload the plugin JAR + - name: "Upload the Java ${{ matrix.java-version }} plugin JAR" uses: actions/upload-artifact@v4 with: name: "Quests-JDK${{ matrix.java-version }}" - path: build/libs/*.jar + path: | + build/libs/*.jar + !build/libs/*+java8.jar + if-no-files-found: error + - name: Upload the Java 8 plugin JAR + uses: actions/upload-artifact@v4 + with: + name: Quests-JDK8 (use at your own risk) + path: build/libs/*+java8.jar if-no-files-found: error -- cgit v1.2.3-70-g09d2