Skip to content

Gradle and CI on JDK 21 (LTS) - #31

Open
kingdonb wants to merge 1 commit into
mainfrom
chore/jdk-21
Open

kingdonb wants to merge 1 commit into
mainfrom
chore/jdk-21

Conversation

@kingdonb

Copy link
Copy Markdown
Owner

Part of #6.

  • gradle/gradle-daemon-jvm.properties: Adoptium 20 → 21, regenerated with ./gradlew updateDaemonJvm --jvm-version=21 --jvm-vendor=adoptium. JDK 20 is out of support. Gradle downloads 21 on first use (it did on this laptop: Temurin 21.0.7).
  • CI: setup-java 17 → 21, so CI and laptop build on the same JDK.
  • README prerequisites updated.

The app's sourceCompatibility/jvmTarget stays 17, so the APK's bytecode is unchanged.

Verification: unit tests and the minified release build pass with the daemon on Temurin 21.

Android Studio 2026.2 reads the daemon criteria file, so it should switch to 21 on the next sync. Check Settings → Build Tools → Gradle → Gradle JDK if it complains.

— Claude-Opus-5.5

🤖 Generated with Claude Code

The Gradle daemon was pinned to JDK 20, which is out of support, while
CI used 17. Both now use Temurin 21, the current LTS. Gradle downloads
it via foojay when missing. The app's bytecode target stays Java 17,
so the APK is unaffected.

Refs #6

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant