Update actions/setup-java action to v4
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| actions/setup-java | action | major | v3.5.1 -> v4.7.1 |
| actions/setup-java | action | major | v1 -> v4 |
Release Notes
actions/setup-java (actions/setup-java)
v4.7.1
v4.7.0
What's Changed
- Configure Dependabot settings by @​HarithaVattikuti in https://github.com/actions/setup-java/pull/722
- README Update: Added a permissions section by @​benwells in https://github.com/actions/setup-java/pull/723
- Upgrade
cachefrom version 3.2.4 to 4.0.0 by @​aparnajyothi-y in https://github.com/actions/setup-java/pull/724 - Upgrade
@actions/http-clientfrom 2.2.1 to 2.2.3 by @​dependabot in https://github.com/actions/setup-java/pull/728 - Upgrade
actions/publish-immutable-actionfrom 0.0.3 to 0.0.4 by @​dependabot in https://github.com/actions/setup-java/pull/727 - Upgrade
@types/jestfrom 29.5.12 to 29.5.14 by @​dependabot in https://github.com/actions/setup-java/pull/729
New Contributors
- @​benwells made their first contribution in https://github.com/actions/setup-java/pull/723
Full Changelog: https://github.com/actions/setup-java/compare/v4...v4.7.0
v4.6.0
What's Changed
Add-ons:
- Add Support for JetBrains Runtime by @​gmitch215 in https://github.com/actions/setup-java/pull/637
- name: Checkout
uses: actions/checkout@v4
- name: Setup-java
uses: actions/setup-java@v4
with:
distribution: ‘jetbrains’
java-version: '21'
Bug fixes:
- Fix Ubuntu-latest CI failures by @​mahabaleshwars in https://github.com/actions/setup-java/pull/693
New Contributors
- @​gmitch215 made their first contribution in https://github.com/actions/setup-java/pull/637
Full Changelog: https://github.com/actions/setup-java/compare/v4...v4.6.0
v4.5.0
What's Changed
- Upgrade IA Publish by @​Jcambass in #​686
Bug fixes:
- Improve archive extraction on windows runners without powershell core and Update micromatch dependency by @​priyagupta108 in #​689
- Update workflows for GraalVM and Version Enhancements by @​mahabaleshwars in #​699
- Refine
isGheslogic by @​jww3 in #​697
New Contributors:
- @​priyagupta108 made their first contribution in https://github.com/actions/setup-java/pull/689
- @​jww3 made their first contribution in https://github.com/actions/setup-java/pull/697
Full Changelog: https://github.com/actions/setup-java/compare/v4...v4.5.0
v4.4.0
What's Changed
Add-ons :
- Add support for Oracle GraalVM by @​fniephaus in https://github.com/actions/setup-java/pull/501
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup-java
uses: actions/setup-java@v4
with:
distribution: 'graalvm'
java-version: '21'
- Add workflow file for publishing releases to immutable action package by @​Jcambass in https://github.com/actions/setup-java/pull/684
Bug fixes :
- Add architecture to cache key by @​Zxilly in https://github.com/actions/setup-java/pull/664 This addresses issues with caching by adding the architecture (arch) to the cache key, ensuring that cache keys are accurate to prevent conflicts. Note: This change may break previous cache keys as they will no longer be compatible with the new format.
- Resolve check failures by @​aparnajyothi-y in https://github.com/actions/setup-java/pull/687
New Contributors
- @​Jcambass made their first contribution in https://github.com/actions/setup-java/pull/684
- @​Zxilly made their first contribution in https://github.com/actions/setup-java/pull/664
Full Changelog: https://github.com/actions/setup-java/compare/v4...v4.4.0
v4.3.0
What's Changed
- Add support for SapMachine JDK/JRE by @​Shegox in #​614
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup-java
uses: actions/setup-java@v4
with:
distribution: 'sapmachine'
java-version: '21'
Bug fixes :
- Fix typos on Corretto by @​johnshajiang in #​666
- IBM Semeru Enhancement on arm64 by @​mahabaleshwars in #​677
- Resolve Basic Validation Check Failures by @​aparnajyothi-y
 in #​682
New Contributors :
- @​johnshajiang made their first contribution in #​666
- @​Shegox made their first contribution in #​614
Full Changelog: https://github.com/actions/setup-java/compare/v4...v4.3.0
v4.2.2
What's Changed


Bug fixes:
- Fix macos latest check failures by @​HarithaVattikuti in https://github.com/actions/setup-java/pull/634
- Fix dragonwell distribution parsing issues by @​Accelerator1996 in https://github.com/actions/setup-java/pull/643
Documentation changes
- Update advanced documentation for java-version-file by @​mahabaleshwars in https://github.com/actions/setup-java/pull/622
Dependency updates:
- Bump undici from 5.28.3 to 5.28.4 and other dependency updates by @​dependabot in https://github.com/actions/setup-java/pull/616
Full Changelog: https://github.com/actions/setup-java/compare/v4...v4.2.2
v4.2.1
What's Changed
- Patch for java version file to accept it from any path by @​mahabaleshwars in https://github.com/actions/setup-java/pull/610
Full Changelog: https://github.com/actions/setup-java/compare/v4...v4.2.1
v4.2.0
What's Changed
- Updated actions/httpclient version to 2.2.1 and other dependencies by @​HarithaVattikuti in https://github.com/actions/setup-java/pull/607
- Added .tool-versions file support along with .java-version file by @​mahabaleshwars in https://github.com/actions/setup-java/pull/606
New Contributors
- @​HarithaVattikuti made their first contribution in https://github.com/actions/setup-java/pull/607 Full Changelog: https://github.com/actions/setup-java/compare/v4...v4.2.0
v4.1.0
What's Changed
- Added Windows Arm64 Support for Windows Arm64 Runners by @​mahabaleshwars in https://github.com/actions/setup-java/pull/595
- feat: bump actions/checkout and actions/setup-java to v4 by @​kbdharun in https://github.com/actions/setup-java/pull/533
- Handle authorization when the token is undefined by @​peter-murray in https://github.com/actions/setup-java/pull/556
- Documentation update of Java 21 by @​Okeanos in https://github.com/actions/setup-java/pull/566
- Documentation update about maven-gpg-plugin version note by @​IvanZosimov in https://github.com/actions/setup-java/pull/570
- Oracle JDK 21 support by @​jdubois in https://github.com/actions/setup-java/pull/538
- Fix typo in configuration example by @​Bananeweizen in https://github.com/actions/setup-java/pull/572
New Contributors
- @​kbdharun made their first contribution in https://github.com/actions/setup-java/pull/533
- @​peter-murray made their first contribution in https://github.com/actions/setup-java/pull/556
- @​jdubois made their first contribution in https://github.com/actions/setup-java/pull/538
- @​Bananeweizen made their first contribution in https://github.com/actions/setup-java/pull/572
- @​mahabaleshwars made their first contribution in https://github.com/actions/setup-java/pull/595
Full Changelog: https://github.com/actions/setup-java/compare/v4...v4.1.0
v4.0.0
What's Changed
In the scope of this release, the version of the Node.js runtime was updated to 20. The majority of dependencies were updated to the latest versions. From now on, the code for the setup-java will run on Node.js 20 instead of Node.js 16.
Breaking changes
- Update Node.js runtime to version 20 by @​aparnajyothi-y in https://github.com/actions/setup-java/pull/558
Non-breaking changes
- Adding support for microsoft openjdk 21.0.0 by @​ralfstuckert in https://github.com/actions/setup-java/pull/546
- Update @​actions/cache dependency and documentation by @​IvanZosimov in https://github.com/actions/setup-java/pull/549
- Implementation of the cache-dependency-path option to control caching dependency by @​itchyny in https://github.com/actions/setup-java/pull/499
New Contributors
- @​ralfstuckert made their first contribution in https://github.com/actions/setup-java/pull/546
- @​itchyny made their first contribution in https://github.com/actions/setup-java/pull/499
Full Changelog: https://github.com/actions/setup-java/compare/v3...v4.0.0
v3.13.0
What's changed
In the scope of this release, support for Dragonwell JDK was added by @​Accelerator1996 in https://github.com/actions/setup-java/pull/532
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup-java
uses: actions/setup-java@v3
with:
distribution: 'dragonwell'
java-version: '17'
Several inaccuracies were also fixed:
- Fix XML namespaces wrongly using https by @​gnodet in https://github.com/actions/setup-java/pull/503
- Fix typo and remove unintentional(?) word by @​CyberFlameGO in https://github.com/actions/setup-java/pull/518
- Fix usage link within the README.md file by @​dassiorleando in https://github.com/actions/setup-java/pull/525
New Contributors
- @​CyberFlameGO made their first contribution in https://github.com/actions/setup-java/pull/518
- @​dassiorleando made their first contribution in https://github.com/actions/setup-java/pull/525
- @​gnodet made their first contribution in https://github.com/actions/setup-java/pull/503
- @​Accelerator1996 made their first contribution in https://github.com/actions/setup-java/pull/532
Full Changelog: https://github.com/actions/setup-java/compare/v3...v3.13.0
v3.12.0
In scope of this release the following changes were made:
Bug fixes:
- Always check postfix "Contents/Home" on macOS by @​erwin1 in https://github.com/actions/setup-java/pull/397
- Fix sbt/scala cache key by @​Dogacel in https://github.com/actions/setup-java/pull/478
- Corretto toolcache folder name fix by @​IvanZosimov in https://github.com/actions/setup-java/pull/480
- Update versions of Oracle JDK and Microsoft Build of OpenJDK by @​anishi1222 in https://github.com/actions/setup-java/pull/489
- Update Oracle JDK download URL calculation by @​nikolai-laevskii in https://github.com/actions/setup-java/pull/507
Feature implementations:
- Add versions properties to cache by @​Endi327 in https://github.com/actions/setup-java/pull/280
Resolving dependencies issues:
- Remove implicit dependencies by @​nikolai-laevskii in https://github.com/actions/setup-java/pull/494
- Update xml2js by @​dmitry-shibanov in https://github.com/actions/setup-java/pull/484
- Update dependencies by @​IvanZosimov in https://github.com/actions/setup-java/pull/511
Infrastructure updates:
- Fix glob bug in package.json scripts section by @​IvanZosimov in https://github.com/actions/setup-java/pull/475
- Update mocks by @​nikolai-laevskii in https://github.com/actions/setup-java/pull/498
Documentation changes:
- Instruction to download custom distribution JDK and install by @​ragsmpl in https://github.com/actions/setup-java/pull/500
New Contributors
- @​erwin1 made their first contribution in https://github.com/actions/setup-java/pull/397
- @​Dogacel made their first contribution in https://github.com/actions/setup-java/pull/478
- @​anishi1222 made their first contribution in https://github.com/actions/setup-java/pull/489
- @​nikolai-laevskii made their first contribution in https://github.com/actions/setup-java/pull/498
- @​ragsmpl made their first contribution in https://github.com/actions/setup-java/pull/500
- @​Endi327 made their first contribution in https://github.com/actions/setup-java/pull/280
Full Changelog: https://github.com/actions/setup-java/compare/v3...v3.12.0
v3.11.0
In scope of this release we added support for IBM Semeru (OpenJ9) JDK (https://github.com/actions/setup-java/pull/289).
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup-java
uses: actions/setup-java@v3
with:
distribution: semeru
java-version: 17
Supported distributions
Currently, the following distributions are supported:
| Keyword | Distribution | Official site | License |
|---|---|---|---|
temurin |
Eclipse Temurin | Link | Link |
zulu |
Azul Zulu OpenJDK | Link | Link |
adopt or adopt-hotspot |
AdoptOpenJDK Hotspot | Link | Link |
adopt-openj9 |
AdoptOpenJDK OpenJ9 | Link | Link |
liberica |
Liberica JDK | Link | Link |
microsoft |
Microsoft Build of OpenJDK | Link | Link |
corretto |
Amazon Corretto Build of OpenJDK | Link | Link |
semeru |
IBM Semeru Runtime Open Edition | Link | Link |
oracle |
Oracle JDK | Link | Link |
v3.10.0
In scope of this release we added support for Oracle JDK (https://github.com/actions/setup-java/pull/450).
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup-java
uses: actions/setup-java@v3
with:
distribution: oracle
java-version: 17
Supported distributions
Currently, the following distributions are supported:
| Keyword | Distribution | Official site | License |
|---|---|---|---|
temurin |
Eclipse Temurin | Link | Link |
zulu |
Azul Zulu OpenJDK | Link | Link |
adopt or adopt-hotspot |
AdoptOpenJDK Hotspot | Link | Link |
adopt-openj9 |
AdoptOpenJDK OpenJ9 | Link | Link |
liberica |
Liberica JDK | Link | Link |
microsoft |
Microsoft Build of OpenJDK | Link | Link |
corretto |
Amazon Corretto Build of OpenJDK | Link | Link |
oracle |
Oracle JDK | Link | Link |
v3.9.0
In scope of this release we add support for .java-version file (https://github.com/actions/setup-java/pull/426). For more information about its usage please refer to the documentation.
steps:
- uses: actions/checkout@v3
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: '<distribution>'
java-version-file: .java-version
- run: java HelloWorldApp.java
v3.8.0
In scope of this release we added logic to pass the token input through on GHES for Microsoft Build of OpenJDK (https://github.com/actions/setup-java/pull/395) and updated minimatch dependency.
v3.6.0
In scope of this release we added Maven Toolchains Support and Maven Toolchains Declaration. Moreover, from this release we use os.arch to determine default architecture for runners: https://github.com/actions/setup-java/pull/376. Besides, we made such changes as:
-
Upgrade @​actions/cache from 3.0.0 to 3.0.4 so it respects
SEGMENT_DOWNLOAD_TIMEOUT_MINS - Support Gradle version catalog
- Update @​actions/core to 1.10.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.