From de2b72083c83a9af9da33f89600aeb20a7225ce3 Mon Sep 17 00:00:00 2001 From: Krakenied Date: Wed, 12 Jun 2024 04:04:25 +0200 Subject: Rewrite Gradle files to use DSL which is actually supported by IDEs Change the downgrader to a modern supported one --- .github/workflows/build.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0cda7c2d..5f299d28 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,18 +24,30 @@ jobs: **/*.gradle* **/gradle-wrapper.properties - name: Build with Gradle - run: ./gradlew allJar --no-daemon --stacktrace + run: ./gradlew --no-daemon --stacktrace - name: "Upload the Java ${{ matrix.java-version }} plugin JAR" uses: actions/upload-artifact@v4 with: - name: "Quests-JDK${{ matrix.java-version }}" + name: "! Quests-JDK${{ matrix.java-version }}" path: | build/libs/*.jar - !build/libs/*+java8.jar + !build/libs/*-downgraded-*.jar if-no-files-found: error - - name: Upload the Java 8 plugin JAR + - name: Upload the downgraded Java 8 plugin JAR uses: actions/upload-artifact@v4 with: - name: Quests-JDK8 (use at your own risk) - path: build/libs/*+java8.jar + name: Quests-JDK1.8 (use at your own risk) + path: build/libs/*-downgraded-8.jar + if-no-files-found: error + - name: Upload the downgraded Java 16 plugin JAR + uses: actions/upload-artifact@v4 + with: + name: Quests-JDK16 (use at your own risk) + path: build/libs/*-downgraded-16.jar + if-no-files-found: error + - name: Upload the downgraded Java 17 plugin JAR + uses: actions/upload-artifact@v4 + with: + name: Quests-JDK17 (use at your own risk) + path: build/libs/*-downgraded-17.jar if-no-files-found: error -- cgit v1.2.3-70-g09d2