Skip to content

chore: upgrade toolchain to Java 21 - #528

Open
hopeman15 wants to merge 1 commit into
mainfrom
chore/java-21
Open

chore: upgrade toolchain to Java 21#528
hopeman15 wants to merge 1 commit into
mainfrom
chore/java-21

Conversation

@hopeman15

Copy link
Copy Markdown
Collaborator

Description

Moves the whole project from Java 17 to Java 21.

  • build.gradle.kts — Android compileOptions source/target compatibility (applied from the root script to every app and library module), the Kotlin jvmTarget for the root KotlinCompile config and the JVM-only subprojects, and detekt's jvmTarget
  • slack-feedback/build.gradle.ktsjava-library source/target compatibility
  • .github/workflows/main.yml and publish.ymljava-version for the build, test, lint and publish jobs (temurin, unchanged)

release.yml and auto-labeling.yml set up no JDK, so they are untouched. No toolchain block, gradle.properties entry or doc referenced a Java version.

UI

No UI changes.

Review checklist

  • PR is split into meaningful commits for the ease of reviewing
  • Tests have been written — no behaviour change; verified with make all (clean, format, lint + detekt, unit tests, kover, assemble) on Temurin 21
  • Screenshots added (where applicable)
  • Appropriate labels have been applied

Move the whole project from Java 17 to Java 21:

- Android `compileOptions` source/target compatibility (applied to every
  app and library module from the root build script)
- Kotlin `jvmTarget` for the root `KotlinCompile` config and the JVM-only
  subprojects
- detekt's `jvmTarget`
- `slack-feedback`'s `java-library` source/target compatibility
- `java-version` in the build/test/lint/publish CI jobs

Verified with `make all` on Temurin 21.
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