Skip to content

Conversation

@devinrsmith
Copy link
Member

@devinrsmith devinrsmith commented Dec 31, 2025

We are being incorrectly prescriptive in setting up Java in CI; the build currently requires JDK 21 (our default compiler version), 17 (javadocs and a few projects that set compilerVersion, runtimeVersion, or testRuntimeVersion to 17), and 11 (buildSrc explicitly sets to the 11 toolchain); we were currently getting "lucky" that all of these versions can be implicitly sourced from the hosted toolchain cache when not explicitly installed.

We may want to consider locking this down more in the future, and only telling gradle about the JDKs we've explicitly enabled; that is, not implicitly sourcing from the hosted tool cache.

Instead of sourcing the JDKs one-by-one, setup-java can source multiple at once: https://github.com/actions/setup-java/tree/v5?tab=readme-ov-file#install-multiple-jdks

This also removes the overly-strict requirement of "JDK 11 is currently required for CI builds". I suspect this was originally put in place as a safety measure when the gradle javaToolchain ecosystem was less mature and/or our setup of java requirements in gradle itself was less robust.

We are being incorrectly perscriptive in setting up Java in CI; the build currently requires JDK 21 (our default compiler version), 17 (javadocs and a few projects that set compilerVersion, runtimeVersion, or testRuntimeVersion to 17), and 11 (buildSrc explicitly sets to the 11 toolchain); we were currently getting "lucky" that all of these versions can be implicitly sourced from the [hosted toolchain cache](https://github.com/actions/runner-images/blob/releases/ubuntu24/20251215/images/ubuntu/Ubuntu2404-Readme.md#java) when not explicitly installed.

We may want to consider locking this down more in the future, and _only_ telling gradle about the JDKs we've explicitly enabled; that is, _not_ implicitly sourcing from the hosted tool cache.

Instead of sourcing the JDKs one-by-one, setup-java can source multiple at once: https://github.com/actions/setup-java/tree/v5?tab=readme-ov-file#install-multiple-jdks
@devinrsmith devinrsmith self-assigned this Dec 31, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 31, 2025

No docs changes detected for b26b58d

@devinrsmith devinrsmith requested a review from rcaudy December 31, 2025 20:12
@rcaudy rcaudy merged commit aacf1b4 into deephaven:main Dec 31, 2025
32 of 34 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants