What changed in actions/setup-java from 5 to 6

4 releases numbered after v5.7.0 up to and including v6.2.0, stable releases only. v5.7.0 and v6.2.0 are the newest stable releases of 5 and 6 we track; this page follows them as new ones ship.

43 changes across 4 releases

Added 16

v6.2.0

  • Add repository-specific Copilot instructions
  • Support exact Corretto release versions
  • Support Maven mirrors in generated settings.xml

v6.1.0

  • Support Temurin builds on Linux RISC-V
  • Support Temurin JEP 322 patch versions such as 26.0.2.1+1
  • Support Maven server credential origins
  • Support Maven plugin repositories in the generated settings.xml

v6.0.0

  • Include .mvn/extensions.xml in the Maven cache key pattern
  • Infer the distribution from the vendor prefix in asdf .tool-versions files
  • Add a Maven compiler problem matcher for javac diagnostics
  • Expose a cache-primary-key output
  • Support multi-field Java versions such as 18.0.1.1
  • Support pinning java-version to latest
  • Add support for the Tencent Kona JDK 25 distribution
  • Support the Liberica NIK distribution
  • Add an option to disable Java problem matchers
Changed 15

v6.2.0

  • Update Undici to 6.29.1
  • Bump the monthly-npm-updates dependency group with 12 updates

v6.1.0

  • Prefer Zulu 4-segment hotfix builds when resolving version ranges
  • Bump undici from 6.28.0 to 6.29.0
  • Bump the monthly npm dependency group with 13 updates

v6.0.1

  • Complete v6 release highlights in README
  • Group and slow routine Dependabot updates
  • Update eslint and globals dev dependencies

v6.0.0

  • Migrate Zulu distribution lookups from the Zulu Discovery API to the Azul Metadata API
  • Migrate the action codebase to ESM and upgrade dependencies
  • Map Zulu x86 architecture to i686 for the Azul Metadata API
  • Rename the jdkFile input to jdk-file, keeping the old name as a deprecated alias
  • Update the recommended configuration for GPG signing to use gpg.passphraseEnvName instead of the deprecated gpg.passphrase server setting
  • Cache Maven and Gradle wrapper distributions separately from the dependency cache
  • Clarify documentation of credential environment variable inputs
Fixed 10

v6.2.0

  • Fix Liberica SDKMAN patch release resolution
  • Fix Liberica Java 25 release resolution

v6.1.0

  • Preserve compound Liberica build versions read from .sdkmanrc
  • Stop the GPG agent before removing the signature-verification home directory

v6.0.1

  • Fix failing GitHub Actions job for Temurin 17
  • Fix Temurin EA E2E signature verification
  • Fix Alpine GPG verification failures and support multiple keys
  • Fix import-safe checks when scripts are run from a path with symlinks
  • Avoid macOS GPG socket overflow on long runner paths

v6.0.0

  • Preserve Maven toolchains across repeated setup-java runs
Security 2

v6.0.0

  • Fix npm audit vulnerabilities and rebuild distributions
  • Fix template injection in the e2e-versions workflow and disable persisted checkout credentials in the e2e workflow

Original release notes, newest first

The list above is our reading of these notes; the originals from GitHub are here, one fold per release.

v6.2.0
What's Changed
New Contributors

Full Changelog: https://github.com/actions/setup-java/compare/v6.1.0...v6.2.0

View originalPermalink

v6.1.0
What's Changed
New Contributors

Full Changelog: https://github.com/actions/setup-java/compare/v6.0.1...v6.1.0

View originalPermalink

v6.0.1
What's Changed
New Contributors

Full Changelog: https://github.com/actions/setup-java/compare/v6.0.0...v6.0.1

View originalPermalink

v6.0.0
What's Changed
New Contributors

Full Changelog: https://github.com/actions/setup-java/compare/v5.7.0...v6.0.0

View originalPermalink