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
- Add repository-specific Copilot instructions
- Support exact Corretto release versions
- Support Maven mirrors in generated settings.xml
- 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
- 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
- Update Undici to 6.29.1
- Bump the monthly-npm-updates dependency group with 12 updates
- 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
- Complete v6 release highlights in README
- Group and slow routine Dependabot updates
- Update eslint and globals dev dependencies
- 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
- Fix Liberica SDKMAN patch release resolution
- Fix Liberica Java 25 release resolution
- Preserve compound Liberica build versions read from .sdkmanrc
- Stop the GPG agent before removing the signature-verification home directory
- 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
- Preserve Maven toolchains across repeated setup-java runs
Security 2
- 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
- Fix Liberica SDKMAN patch release resolution by @brunoborges in https://github.com/actions/setup-java/pull/1291
- Update Undici to 6.29.1 by @brunoborges in https://github.com/actions/setup-java/pull/1308
- chore(deps): bump the monthly-npm-updates group with 12 updates by @dependabot[bot] in https://github.com/actions/setup-java/pull/1309
- Fix Liberica Java 25 release resolution by @brunoborges in https://github.com/actions/setup-java/pull/1313
- Add repository-specific Copilot instructions by @brunoborges in https://github.com/actions/setup-java/pull/1312
- Support exact Corretto release versions by @electrum in https://github.com/actions/setup-java/pull/1310
- Support Maven mirrors in generated settings.xml by @brunoborges in https://github.com/actions/setup-java/pull/1289
New Contributors
- @electrum made their first contribution in https://github.com/actions/setup-java/pull/1310
Full Changelog: https://github.com/actions/setup-java/compare/v6.1.0...v6.2.0
v6.1.0
What's Changed
- Preserve compound Liberica build versions from .sdkmanrc by @brunoborges with @Copilot in https://github.com/actions/setup-java/pull/1268
- Support Temurin on Linux RISC-V by @yawkat in https://github.com/actions/setup-java/pull/1269
- Stop GPG agent before removing signature-verification home by @brunoborges with @Copilot in https://github.com/actions/setup-java/pull/1273
- Prefer Zulu 4-segment hotfix builds when resolving version ranges by @brunoborges in https://github.com/actions/setup-java/pull/1278
- Support Temurin JEP 322 patch versions like 26.0.2.1+1 by @brunoborges in https://github.com/actions/setup-java/pull/1279
- chore(deps): bump undici from 6.28.0 to 6.29.0 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1274
- chore(deps): bump the monthly-npm-updates group with 13 updates by @dependabot[bot] in https://github.com/actions/setup-java/pull/1276
- feat: support Maven server credential origins by @YunaBraska in https://github.com/actions/setup-java/pull/1282
- Support Maven plugin repositories in generated settings.xml by @brunoborges in https://github.com/actions/setup-java/pull/1286
New Contributors
- @yawkat made their first contribution in https://github.com/actions/setup-java/pull/1269
- @YunaBraska made their first contribution in https://github.com/actions/setup-java/pull/1282
Full Changelog: https://github.com/actions/setup-java/compare/v6.0.1...v6.1.0
v6.0.1
What's Changed
- Fix failing GitHub Actions job for temurin 17 by @brunoborges with @Copilot in https://github.com/actions/setup-java/pull/1259
- Fix Temurin EA E2E signature verification by @brunoborges with @Copilot in https://github.com/actions/setup-java/pull/1260
- Fix Alpine GPG verification failures and support multiple keys by @brunoborges in https://github.com/actions/setup-java/pull/1262
- Fix import-safe checks when scripts are run from a path with symlinks by @otaconix in https://github.com/actions/setup-java/pull/1265
- Avoid macOS GPG socket overflow on long runner paths by @brunoborges with @Copilot in https://github.com/actions/setup-java/pull/1266
- Complete v6 release highlights in README by @brunoborges in https://github.com/actions/setup-java/pull/1254
- Group and slow routine Dependabot updates by @brunoborges in https://github.com/actions/setup-java/pull/1255
- chore(deps-dev): update eslint and globals by @dependabot[bot] in https://github.com/actions/setup-java/pull/1256
New Contributors
- @otaconix made their first contribution in https://github.com/actions/setup-java/pull/1265
Full Changelog: https://github.com/actions/setup-java/compare/v6.0.0...v6.0.1
v6.0.0
What's Changed
- dist: Migrate from Zulu Discovery API to Azul Metadata API by @jameswald in https://github.com/actions/setup-java/pull/1010
- feat: add .mvn/extensions.xml to Maven cache key pattern by @brunoborges with @Copilot in https://github.com/actions/setup-java/pull/1041
- Migrate to ESM and upgrade dependencies by @priyagupta108 in https://github.com/actions/setup-java/pull/1078
- Map Zulu x86 architecture to i686 for Azul Metadata API by @brunoborges in https://github.com/actions/setup-java/pull/1079
- Rename jdkFile input to jdk-file with deprecated alias by @brunoborges in https://github.com/actions/setup-java/pull/1083
- Infer distribution from asdf .tool-versions vendor prefix by @brunoborges in https://github.com/actions/setup-java/pull/1084
- Add Maven compiler problem matcher for javac diagnostics by @brunoborges in https://github.com/actions/setup-java/pull/1086
- feat: expose cache-primary-key output (#597) by @brunoborges in https://github.com/actions/setup-java/pull/1088
- docs: clarify V6 ESM migration is not a user-facing breaking change by @brunoborges in https://github.com/actions/setup-java/pull/1090
- Support multi-field Java versions like
18.0.1.1by @brunoborges in https://github.com/actions/setup-java/pull/1092 - docs: document seeding the Maven cache for plugin dependencies by @brunoborges in https://github.com/actions/setup-java/pull/1094
- docs: clarify Maven cache paths and key hash inputs by @brunoborges in https://github.com/actions/setup-java/pull/1096
- Support pinning java-version as "latest" by @brunoborges in https://github.com/actions/setup-java/pull/1093
- chore(deps-dev): bump eslint from 10.6.0 to 10.7.0 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1101
- chore(deps-dev): bump eslint-plugin-n from 18.2.1 to 18.2.2 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1103
- chore(deps-dev): bump prettier from 3.9.4 to 3.9.5 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1105
- chore(deps): bump actions/checkout from 6 to 7 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1106
- chore(deps-dev): bump @types/node from 26.1.0 to 26.1.1 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1104
- dist: Cover Tencent Kona JDK 25 by @johnshajiang in https://github.com/actions/setup-java/pull/1108
- chore(deps-dev): bump typescript from 6.0.3 to 7.0.2 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1102
- Preserve Maven toolchains across repeated setup-java runs (#1099) by @brunoborges in https://github.com/actions/setup-java/pull/1111
- dist: Support Liberica NIK (#878) by @asm0dey in https://github.com/actions/setup-java/pull/1112
- Fix template injection (zizmor alert #118) in e2e-versions.yml by @brunoborges with @Copilot in https://github.com/actions/setup-java/pull/1114
- Fix template injection in e2e-versions.yml (zizmor alert #122) by @brunoborges with @Copilot in https://github.com/actions/setup-java/pull/1120
- Disable persisted checkout credentials in e2e workflow by @brunoborges with @Copilot in https://github.com/actions/setup-java/pull/1115
- feat: Update recommended configuration for GPG signing by @wetneb in https://github.com/actions/setup-java/pull/608
- Cache Maven and Gradle wrapper distributions separately from the dependency cache by @brunoborges in https://github.com/actions/setup-java/pull/1097
- Consolidate cache-dependency-path e2e workflow and add maven/sbt coverage by @brunoborges in https://github.com/actions/setup-java/pull/1124
- Use gpg.passphraseEnvName instead of the deprecated gpg.passphrase server by @brunoborges in https://github.com/actions/setup-java/pull/1123
- Extract repeated directory-check assertions into check-dir.sh helper by @brunoborges in https://github.com/actions/setup-java/pull/1127
- Consolidate duplicate jobs in e2e-versions workflow by @brunoborges in https://github.com/actions/setup-java/pull/1125
- Use YAML anchors to reduce boilerplate in e2e-versions workflow by @brunoborges in https://github.com/actions/setup-java/pull/1126
- Updated msft json for now by @jmjaffe37 in https://github.com/actions/setup-java/pull/1129
- Document missing action inputs in README by @brunoborges in https://github.com/actions/setup-java/pull/1130
- chore(deps): bump @actions/cache to 6.2.0 by @philip-gai in https://github.com/actions/setup-java/pull/1128
- Add an option to disable Java problem matchers by @brunoborges in https://github.com/actions/setup-java/pull/1133
- docs: update setup-java examples by @HarithaVattikuti in https://github.com/actions/setup-java/pull/1131
- Clarify credential environment variable inputs by @brunoborges in https://github.com/actions/setup-java/pull/1134
- chore(deps-dev): bump @typescript-eslint/eslint-plugin from 8.63.0 to 8.64.0 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1135
- chore(deps): bump actions/setup-python from 6 to 7 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1143
- chore(deps): bump fast-xml-parser from 5.9.3 to 5.10.1 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1142
- chore(deps-dev): bump @typescript-eslint/parser from 8.64.0 to 8.65.0 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1138
- chore(deps-dev): bump lint-staged from 17.0.8 to 17.2.0 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1136
- chore(deps-dev): bump typescript from 6.0.3 to 7.0.2 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1137
- chore(deps): fix npm audited vulnerabilities by @mhoffrog in https://github.com/actions/setup-java/pull/1140
- Fix formatting issues in README.md by @brunoborges in https://github.com/actions/setup-java/pull/1144
- Remediate npm audit findings and rebuild distributions by @brunoborges with @Copilot in https://github.com/actions/setup-java/pull/1145
- Set GRAALVM_HOME for GraalVM distributions by @brunoborges with @Copilot in https://github.com/actions/setup-java/pull/1146
- Add force-download option for reproducible JDK builds by @brunoborges with @Copilot in https://github.com/actions/setup-java/pull/1148
- Add OpenJDK distribution by @brunoborges with @Copilot in https://github.com/actions/setup-java/pull/1147
- Support Temurin JDKs with JMOD files by @brunoborges with @Copilot in https://github.com/actions/setup-java/pull/1149
- Document Java package compatibility by distribution by @brunoborges in https://github.com/actions/setup-java/pull/1152
- Fix caching when wrapper distributions are absent by @brunoborges in https://github.com/actions/setup-java/pull/1151
- Reject invalid boolean input values by @brunoborges in https://github.com/actions/setup-java/pull/1160
- Fail on mismatched Maven toolchain ID counts by @brunoborges in https://github.com/actions/setup-java/pull/1161
- Consolidate JDK metadata retry handling by @brunoborges in https://github.com/actions/setup-java/pull/1162
- Add direct setup orchestration tests by @brunoborges in https://github.com/actions/setup-java/pull/1163
- Harden java-package validation across distributions by @brunoborges in https://github.com/actions/setup-java/pull/1165
- Verify JDK downloads with vendor checksums by @brunoborges in https://github.com/actions/setup-java/pull/1167
- Reduce change-time Java E2E matrix by @brunoborges in https://github.com/actions/setup-java/pull/1170
- Add read-only mode for dependency caching by @brunoborges in https://github.com/actions/setup-java/pull/1169
- Test Temurin 25 on hosted runners by @brunoborges in https://github.com/actions/setup-java/pull/1172
- Restore dependency and wrapper caches concurrently by @brunoborges in https://github.com/actions/setup-java/pull/1174
- Add dependency cache path overrides by @brunoborges in https://github.com/actions/setup-java/pull/1175
- Centralize OS/architecture capability validation by @brunoborges in https://github.com/actions/setup-java/pull/1178
- Optimize Temurin tool-cache fast path with lazy loading by @brunoborges in https://github.com/actions/setup-java/pull/1179
- Optimize Maven configuration warm path by @brunoborges in https://github.com/actions/setup-java/pull/1182
- Fix macOS e2e workflow assertions by @brunoborges in https://github.com/actions/setup-java/pull/1184
- Remove legacy Adopt distributions in v6 by @brunoborges with @Copilot in https://github.com/actions/setup-java/pull/1185
- chore(deps): bump actions/upload-artifact from 6 to 7 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1190
- Reimagine setup-java README by @brunoborges in https://github.com/actions/setup-java/pull/1192
- Document deprecation of setup-java v1 through v4 by @brunoborges in https://github.com/actions/setup-java/pull/1198
- Update setup-java README action from v6 to v5 by @brunoborges in https://github.com/actions/setup-java/pull/1199
- Highlight major changes in setup-java v5 by @brunoborges in https://github.com/actions/setup-java/pull/1200
- Highlight major changes in setup-java v6 by @brunoborges in https://github.com/actions/setup-java/pull/1203
- chore(deps): bump brace-expansion from 5.0.8 to 5.0.9 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1202
- Add conditional JDK caching by @brunoborges in https://github.com/actions/setup-java/pull/1201
- docs: fix README and advanced usage inconsistencies with actual behavior by @brunoborges in https://github.com/actions/setup-java/pull/1204
- Move the extracted JDK into the tool-cache instead of copying it by @brunoborges in https://github.com/actions/setup-java/pull/1206
- docs: drop benchmark numbers from the JDK caching section by @brunoborges in https://github.com/actions/setup-java/pull/1205
- docs: correct the mvn-toolchain-id default in README and action.yml by @brunoborges in https://github.com/actions/setup-java/pull/1207
- Cache resolved JDK releases to remove the vendor API from warm jobs by @brunoborges in https://github.com/actions/setup-java/pull/1208
- Report concrete versions for floating Oracle JDK downloads by @jdubois in https://github.com/actions/setup-java/pull/1213
- Import Maven signing keys into an isolated GPG home by @jdubois in https://github.com/actions/setup-java/pull/1214
- Reuse the tool cache for floating versions the resolution cache identified by @brunoborges in https://github.com/actions/setup-java/pull/1219
- Fix JetBrains Runtime release pagination by @jdubois in https://github.com/actions/setup-java/pull/1218
- Fix JDK resolution cache platform identity by @jdubois in https://github.com/actions/setup-java/pull/1210
- fix: select musl JDK artifacts on Alpine for Dragonwell, Corretto, Zulu and Liberica by @brunoborges in https://github.com/actions/setup-java/pull/1220
- Fix SapMachine early-access filtering by @jdubois in https://github.com/actions/setup-java/pull/1217
- Fix JetBrains GitHub token resolution by @jdubois in https://github.com/actions/setup-java/pull/1224
- Include gradle.properties in Gradle cache key by @jdubois in https://github.com/actions/setup-java/pull/1225
- Handle early dependency cache failures during Java setup by @jdubois in https://github.com/actions/setup-java/pull/1226
- Fix js-yaml audit vulnerability by @brunoborges in https://github.com/actions/setup-java/pull/1228
- Fix failing GitHub Actions job for graalvm 24-ea by @brunoborges with @Copilot in https://github.com/actions/setup-java/pull/1227
- Update setup-java for Microsoft's Build of OpenJDK: now pointing task to CDN that is always up-to-date by @jmjaffe37 in https://github.com/actions/setup-java/pull/1236
- chore(deps-dev): bump globals from 17.8.0 to 17.9.0 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1233
- chore(deps-dev): bump @types/semver from 7.7.1 to 7.8.0 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1229
- chore(deps-dev): bump lint-staged from 17.2.0 to 17.3.0 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1231
- chore(deps-dev): bump @typescript-eslint/eslint-plugin from 8.65.0 to 8.67.0 by @dependabot[bot] in https://github.com/actions/setup-java/pull/1232
- Test JDK 26 installation from SDKMAN by @brunoborges in https://github.com/actions/setup-java/pull/1238
- Add support for multiple Maven servers by @brunoborges in https://github.com/actions/setup-java/pull/1239
- Add Maven dependency-resolution repositories by @brunoborges in https://github.com/actions/setup-java/pull/1240
- Add Red Hat Build of OpenJDK support by @brunoborges in https://github.com/actions/setup-java/pull/1241
- Fix Oracle macOS E2E version check by @brunoborges in https://github.com/actions/setup-java/pull/1243
- ci: constrain cache e2e job modes by @philip-gai in https://github.com/actions/setup-java/pull/1244
- Expose contributing guide to GitHub by @brunoborges in https://github.com/actions/setup-java/pull/1245
- Set default signature verification for supported distributions by @johnoliver in https://github.com/actions/setup-java/pull/1246
- chore(deps): combine open Dependabot npm updates by @brunoborges in https://github.com/actions/setup-java/pull/1252
- Prepare documentation for v6 release by @brunoborges in https://github.com/actions/setup-java/pull/1253
New Contributors
- @jameswald made their first contribution in https://github.com/actions/setup-java/pull/1010
- @asm0dey made their first contribution in https://github.com/actions/setup-java/pull/1112
- @wetneb made their first contribution in https://github.com/actions/setup-java/pull/608
- @philip-gai made their first contribution in https://github.com/actions/setup-java/pull/1128
Full Changelog: https://github.com/actions/setup-java/compare/v5.7.0...v6.0.0