Gradle 8.11.1 can target JDK 25 via toolchains but can't launch its own daemon on it yet. Install both JDKs in CI with 21 last so it becomes JAVA_HOME, while JDK 25 stays available for the toolchain via JAVA_HOME_25_X64 (same fix validated in the local build). Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
8a6b835c50
commit
38fbdd22ab
@@ -13,11 +13,17 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 25
|
||||
# Gradle 8.11.1 cannot run its own daemon on JDK 25 yet, but the plugin's
|
||||
# toolchain targets 25 (required by the Paper 26.2 API). Install both:
|
||||
# JDK 21 last so it becomes JAVA_HOME (runs Gradle itself), while JDK 25
|
||||
# stays discoverable via JAVA_HOME_25_X64 for Gradle's toolchain to use.
|
||||
- name: Set up JDKs
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: "25"
|
||||
java-version: |
|
||||
25
|
||||
21
|
||||
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
|
||||
Reference in New Issue
Block a user