Skip to content

[2.x] feat: Add setup-java action support in CrossJava#8574

Merged
eed3si9n merged 2 commits intosbt:developfrom
MkDev11:fix/8288-automate-jsonformat-derivation
Jan 20, 2026
Merged

[2.x] feat: Add setup-java action support in CrossJava#8574
eed3si9n merged 2 commits intosbt:developfrom
MkDev11:fix/8288-automate-jsonformat-derivation

Conversation

@MkDev11
Copy link
Copy Markdown
Contributor

@MkDev11 MkDev11 commented Jan 19, 2026

Add SetupJavaDiscoverConfig to detect JDKs installed by GitHub's setup-java action at paths like:

  • /opt/hostedtoolcache/Java_Zulu_jdk/25.0.1-8/x64 (Linux)
  • C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.29-7\x64 (Windows)

These JDKs are now available in fullJavaHomes as [email protected], [email protected], etc.

Supported vendors: Zulu, Temurin, Adopt, Corretto, Liberica, Microsoft, Semeru. Temurin-Hotspot and Adopt are normalized to
temurin.

Fixes #8582

@MkDev11 MkDev11 requested a review from eed3si9n January 19, 2026 08:47
Add SetupJavaDiscoverConfig to detect JDKs installed by GitHub's
setup-java action at paths like:
- /opt/hostedtoolcache/Java_Zulu_jdk/25.0.1-8/x64 (Linux)
- C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.29-7\x64 (Windows)

These JDKs are now available in fullJavaHomes as [email protected],
[email protected], etc.

Supported vendors: Zulu, Temurin, Adopt, Corretto, Liberica,
Microsoft, Semeru. Temurin-Hotspot and Adopt are normalized to
temurin.

Fixes sbt#8582
@MkDev11 MkDev11 force-pushed the fix/8288-automate-jsonformat-derivation branch from e99493f to e9e071a Compare January 20, 2026 08:49
@MkDev11 MkDev11 changed the title Add JsonFormat for CompileAnalysis to support caching feat: Add setup-java action support in CrossJava Jan 20, 2026
Copy link
Copy Markdown
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. I think test needs a bit more work, but overall going the right direction.

@MkDev11 MkDev11 requested a review from eed3si9n January 20, 2026 09:46
@eed3si9n eed3si9n changed the title feat: Add setup-java action support in CrossJava [2.x] feat: Add setup-java action support in CrossJava Jan 20, 2026
Copy link
Copy Markdown
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@eed3si9n eed3si9n merged commit 6f14de5 into sbt:develop Jan 20, 2026
14 checks passed
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.

Support for setup-java action in CrossJava

3 participants