Skip to content

Update dependencies and build with JDK 21#13454

Open
theimpulson wants to merge 2 commits intodevfrom
depUpdate
Open

Update dependencies and build with JDK 21#13454
theimpulson wants to merge 2 commits intodevfrom
depUpdate

Conversation

@theimpulson
Copy link
Copy Markdown
Member

What is it?

  • Bugfix (user facing)
  • Feature (user facing) ⚠️ Your PR must target the refactor branch
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

  • Updates dependencies to latest release
  • Builds with JDK 21as now being asked by more and more plugins

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.

Due diligence

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
Checkstyle was already requiring JDK 21 and now about libraries need it too

Use the kotlin extension method as it will also configure it for java code

Ref: https://kotlinlang.org/docs/gradle-configure-project.html#gradle-java-toolchains-support

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
@theimpulson theimpulson requested review from Stypox and TobiGr April 26, 2026 04:16
@theimpulson theimpulson added the dependency Issues and PRs related to dependencies label Apr 26, 2026
@github-actions github-actions Bot added the size/small PRs with less than 50 changed lines label Apr 26, 2026
@TobiGr
Copy link
Copy Markdown
Contributor

TobiGr commented Apr 26, 2026

The linked Gradle docs also say

If you use Gradle 8.0.2 or higher, you also need to add a toolchain resolver plugin. This type of plugin manages which repositories to download a toolchain from.

I know there was #12923 which already attempted to add it but it was closed. I'd be okay with not adding the resolver plugin so that people need to actively decide which JDK to download and use if they do not have a matching JDK on the machine. I just wanted to put this to debate as it is in the docs right below your linked changes and recommended.

Apart from that, LGTM.

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

Labels

dependency Issues and PRs related to dependencies size/small PRs with less than 50 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants