From d50c3b8ed85076396f0d5644871dbcf70237aa4e Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 26 Sep 2026 11:37:33 +0100 Subject: [PATCH] Build with JDK 25 in CI BentoBox 3.23 and later are compiled for Java 25 (class version 69), so JDK 21 cannot compile against them. Use JDK 25 in the build, Modrinth publish and e2e workflows so the next BentoBox bump doesn't break CI. The addon still targets Java 21 bytecode. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/build.yml | 4 ++-- .github/workflows/e2e.yml | 4 ++-- .github/workflows/modrinth-publish.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6e889438..cc9e4861 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,11 +14,11 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: Set up JDK 21 + - name: Set up JDK 25 uses: actions/setup-java@v3 with: distribution: 'adopt' - java-version: 21 + java-version: 25 - name: Cache SonarCloud packages uses: actions/cache@v3 with: diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index feba4bc6..a411b292 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -26,11 +26,11 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up JDK 21 + - name: Set up JDK 25 uses: actions/setup-java@v4 with: distribution: temurin - java-version: 21 + java-version: 25 - name: Set up Node.js uses: actions/setup-node@v4 diff --git a/.github/workflows/modrinth-publish.yml b/.github/workflows/modrinth-publish.yml index 751ad67e..29c44c32 100644 --- a/.github/workflows/modrinth-publish.yml +++ b/.github/workflows/modrinth-publish.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Java 21 uses: actions/setup-java@v4 with: - java-version: '21' + java-version: '25' distribution: 'temurin' # 3. Cache Maven dependencies to speed up builds