CI: Gradle build fails — JDK not available in runner container #16
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
enhancement
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/mc-heroes-mod#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CI: Gradle build fails — JDK not available in runner container
Symptom
The CI workflow
ci.ymlfails at the Gradle build step. The runner's base container (node:20-bookworm) has no JDK installed, so./gradlew buildfails with "java: command not found".Steps to reproduce
ci.ymlworkflowactions/checkout@v4succeedsactions/setup-java@v4fails or Gradle can't find JavaRoot cause
The workflow uses
runs-on: ubuntu-latestwhich maps todocker://node:20-bookworm— a Node.js container with no JDK. Theactions/setup-java@v4action has compatibility issues with Forgejo's act_runner in container mode.Suggested fix
Change the workflow to use a JDK-containing container:
This repo has been re-dispatched after removing redundant
setup-python— the Gradle failure will persist until the JDK issue is fixed.Fixed in commit. Closing.