From df412a05597ec33880e81e94ec122b8819146582 Mon Sep 17 00:00:00 2001 From: ybw0014 Date: Sun, 13 Oct 2024 09:43:07 -0700 Subject: [PATCH] chore(ci): use java 21 --- .github/workflows/blob-build.yml | 13 +++++++------ .github/workflows/gradle.yml | 13 +++++++------ build.gradle.kts | 2 +- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/blob-build.yml b/.github/workflows/blob-build.yml index d3241475f..aaef30ae3 100644 --- a/.github/workflows/blob-build.yml +++ b/.github/workflows/blob-build.yml @@ -13,19 +13,20 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up JDK 17 + - name: Set up JDK 21 uses: actions/setup-java@v4 with: - java-version: 17 + java-version: 21 distribution: temurin - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v3 + uses: gradle/actions/wrapper-validation@v4 + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 - name: Build with Gradle - uses: gradle/gradle-build-action@v3 - with: - arguments: build shadowJar + run: ./gradlew clean shadowJar - name: Rename jar file run: mv build/libs/SlimefunTranslation-*.jar build/libs/SlimefunTranslation.jar diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 7689491d0..370efc9fb 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -16,19 +16,20 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up JDK 17 + - name: Set up JDK 21 uses: actions/setup-java@v4 with: - java-version: 17 + java-version: 21 distribution: temurin - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v3 + uses: gradle/actions/wrapper-validation@v4 + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 - name: Build with Gradle - uses: gradle/gradle-build-action@v3 - with: - arguments: build shadowJar + run: ./gradlew clean shadowJar - name: Get build artifact ready run: mkdir staging && cp build/libs/*.jar staging diff --git a/build.gradle.kts b/build.gradle.kts index b174067df..4790e7faa 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,7 +3,7 @@ import net.minecrell.pluginyml.bukkit.BukkitPluginDescription plugins { id("java") id("maven-publish") - id("com.gradleup.shadow") version "8.3.2" + id("com.gradleup.shadow") version "8.3.3" id("io.freefair.lombok") version "8.10.2" id("net.minecrell.plugin-yml.bukkit") version "0.6.0" id("xyz.jpenilla.run-paper") version "2.3.1"