Skip to content

fix(build): provision JDK 21 for the Gradle daemon - #7080

Open
Hashim1999164 wants to merge 1 commit into
nextcloud:masterfrom
Hashim1999164:fix/provision-gradle-jdk-21
Open

Hashim1999164 wants to merge 1 commit into
nextcloud:masterfrom
Hashim1999164:fix/provision-gradle-jdk-21

Conversation

@Hashim1999164

Copy link
Copy Markdown

gradle/gradle-daemon-jvm.properties required JDK 21 but contained no toolchain download URLs. On a machine that does not already have JDK 21, the Gradle client fails before configuration with No defined toolchain download url, which is what happens on macOS Apple Silicon.

updateDaemonJvm now records the Adoptium download URLs for every platform, including MAC_OS.AARCH64. Any installed JDK 21 is still used. The URLs are only for provisioning when none is present. Verified by hiding local JDK 21 installs and running ./gradlew help: Gradle downloaded Temurin 21.0.13 and the build started.

minSdk stays 26. That is the lowest version the generic runtime classpath supports: android-common (ui and core) and talk-clients-vodozemac declare 26, and every other dependency declares 24 or lower. The comment next to minSdk records that floor.

🖼️ Screenshots

No UI change.

🚧 TODO

  • No further work

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Made with Cursor

The daemon criteria required JDK 21 but shipped no download URLs, so a
machine without that JDK failed before configuration. Record the
Adoptium URLs, including macOS Apple Silicon, and note that minSdk 26
is the floor declared by android-common and vodozemac.

Signed-off-by: Hashim <sardarhashim30@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@mahibi

mahibi commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Thank you for contributing, we will review soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants