actions/setup-java (actions/setup-java)
### [`v4.1.0`](https://togithub.com/actions/setup-java/releases/tag/v4.1.0)
[Compare Source](https://togithub.com/actions/setup-java/compare/v4.0.0...v4.1.0)
#### What's Changed
- Added Windows Arm64 Support for Windows Arm64 Runners by [@mahabaleshwars](https://togithub.com/mahabaleshwars) in [https://github.com/actions/setup-java/pull/595](https://togithub.com/actions/setup-java/pull/595)
- feat: bump actions/checkout and actions/setup-java to v4 by [@kbdharun](https://togithub.com/kbdharun) in [https://github.com/actions/setup-java/pull/533](https://togithub.com/actions/setup-java/pull/533)
- Handle authorization when the token is undefined by [@peter-murray](https://togithub.com/peter-murray) in [https://github.com/actions/setup-java/pull/556](https://togithub.com/actions/setup-java/pull/556)
- Documentation update of Java 21 by [@Okeanos](https://togithub.com/Okeanos) in [https://github.com/actions/setup-java/pull/566](https://togithub.com/actions/setup-java/pull/566)
- Documentation update about maven-gpg-plugin version note by [@IvanZosimov](https://togithub.com/IvanZosimov) in [https://github.com/actions/setup-java/pull/570](https://togithub.com/actions/setup-java/pull/570)
- Oracle JDK 21 support by [@jdubois](https://togithub.com/jdubois) in [https://github.com/actions/setup-java/pull/538](https://togithub.com/actions/setup-java/pull/538)
- Fix typo in configuration example by [@Bananeweizen](https://togithub.com/Bananeweizen) in [https://github.com/actions/setup-java/pull/572](https://togithub.com/actions/setup-java/pull/572)
#### New Contributors
- [@kbdharun](https://togithub.com/kbdharun) made their first contribution in [https://github.com/actions/setup-java/pull/533](https://togithub.com/actions/setup-java/pull/533)
- [@peter-murray](https://togithub.com/peter-murray) made their first contribution in [https://github.com/actions/setup-java/pull/556](https://togithub.com/actions/setup-java/pull/556)
- [@jdubois](https://togithub.com/jdubois) made their first contribution in [https://github.com/actions/setup-java/pull/538](https://togithub.com/actions/setup-java/pull/538)
- [@Bananeweizen](https://togithub.com/Bananeweizen) made their first contribution in [https://github.com/actions/setup-java/pull/572](https://togithub.com/actions/setup-java/pull/572)
- [@mahabaleshwars](https://togithub.com/mahabaleshwars) made their first contribution in [https://github.com/actions/setup-java/pull/595](https://togithub.com/actions/setup-java/pull/595)
**Full Changelog**: https://github.com/actions/setup-java/compare/v4...v4.1.0
### [`v4.0.0`](https://togithub.com/actions/setup-java/releases/tag/v4.0.0)
[Compare Source](https://togithub.com/actions/setup-java/compare/v3.13.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](https://togithub.com/aparnajyothi-y) in [https://github.com/actions/setup-java/pull/558](https://togithub.com/actions/setup-java/pull/558)
#### Non-breaking changes
- Adding support for microsoft openjdk 21.0.0 by [@ralfstuckert](https://togithub.com/ralfstuckert) in [https://github.com/actions/setup-java/pull/546](https://togithub.com/actions/setup-java/pull/546)
- Update [@actions/cache](https://togithub.com/actions/cache) dependency and documentation by [@IvanZosimov](https://togithub.com/IvanZosimov) in [https://github.com/actions/setup-java/pull/549](https://togithub.com/actions/setup-java/pull/549)
- Implementation of the cache-dependency-path option to control caching dependency by [@itchyny](https://togithub.com/itchyny) in [https://github.com/actions/setup-java/pull/499](https://togithub.com/actions/setup-java/pull/499)
#### New Contributors
- [@ralfstuckert](https://togithub.com/ralfstuckert) made their first contribution in [https://github.com/actions/setup-java/pull/546](https://togithub.com/actions/setup-java/pull/546)
- [@itchyny](https://togithub.com/itchyny) made their first contribution in [https://github.com/actions/setup-java/pull/499](https://togithub.com/actions/setup-java/pull/499)
**Full Changelog**: https://github.com/actions/setup-java/compare/v3...v4.0.0
### [`v3.13.0`](https://togithub.com/actions/setup-java/releases/tag/v3.13.0)
[Compare Source](https://togithub.com/actions/setup-java/compare/v3.12.0...v3.13.0)
##### What's changed
In the scope of this release, support for Dragonwell JDK was added by [@Accelerator1996](https://togithub.com/Accelerator1996) in [https://github.com/actions/setup-java/pull/532](https://togithub.com/actions/setup-java/pull/532)
```yaml
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](https://togithub.com/gnodet) in [https://github.com/actions/setup-java/pull/503](https://togithub.com/actions/setup-java/pull/503)
- Fix typo and remove unintentional(?) word by [@CyberFlameGO](https://togithub.com/CyberFlameGO) in [https://github.com/actions/setup-java/pull/518](https://togithub.com/actions/setup-java/pull/518)
- Fix usage link within the README.md file by [@dassiorleando](https://togithub.com/dassiorleando) in [https://github.com/actions/setup-java/pull/525](https://togithub.com/actions/setup-java/pull/525)
##### New Contributors
- [@CyberFlameGO](https://togithub.com/CyberFlameGO) made their first contribution in [https://github.com/actions/setup-java/pull/518](https://togithub.com/actions/setup-java/pull/518)
- [@dassiorleando](https://togithub.com/dassiorleando) made their first contribution in [https://github.com/actions/setup-java/pull/525](https://togithub.com/actions/setup-java/pull/525)
- [@gnodet](https://togithub.com/gnodet) made their first contribution in [https://github.com/actions/setup-java/pull/503](https://togithub.com/actions/setup-java/pull/503)
- [@Accelerator1996](https://togithub.com/Accelerator1996) made their first contribution in [https://github.com/actions/setup-java/pull/532](https://togithub.com/actions/setup-java/pull/532)
**Full Changelog**: https://github.com/actions/setup-java/compare/v3...v3.13.0
### [`v3.12.0`](https://togithub.com/actions/setup-java/releases/tag/v3.12.0)
[Compare Source](https://togithub.com/actions/setup-java/compare/v3.11.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](https://togithub.com/erwin1) in [https://github.com/actions/setup-java/pull/397](https://togithub.com/actions/setup-java/pull/397)
- Fix sbt/scala cache key by [@Dogacel](https://togithub.com/Dogacel) in [https://github.com/actions/setup-java/pull/478](https://togithub.com/actions/setup-java/pull/478)
- Corretto toolcache folder name fix by [@IvanZosimov](https://togithub.com/IvanZosimov) in [https://github.com/actions/setup-java/pull/480](https://togithub.com/actions/setup-java/pull/480)
- Update versions of Oracle JDK and Microsoft Build of OpenJDK by [@anishi1222](https://togithub.com/anishi1222) in [https://github.com/actions/setup-java/pull/489](https://togithub.com/actions/setup-java/pull/489)
- Update Oracle JDK download URL calculation by [@nikolai-laevskii](https://togithub.com/nikolai-laevskii) in [https://github.com/actions/setup-java/pull/507](https://togithub.com/actions/setup-java/pull/507)
**Feature implementations:**
- Add versions properties to cache by [@Endi327](https://togithub.com/Endi327) in [https://github.com/actions/setup-java/pull/280](https://togithub.com/actions/setup-java/pull/280)
**Resolving dependencies issues:**
- Remove implicit dependencies by [@nikolai-laevskii](https://togithub.com/nikolai-laevskii) in [https://github.com/actions/setup-java/pull/494](https://togithub.com/actions/setup-java/pull/494)
- Update xml2js by [@dmitry-shibanov](https://togithub.com/dmitry-shibanov) in [https://github.com/actions/setup-java/pull/484](https://togithub.com/actions/setup-java/pull/484)
- Update dependencies by [@IvanZosimov](https://togithub.com/IvanZosimov) in [https://github.com/actions/setup-java/pull/511](https://togithub.com/actions/setup-java/pull/511)
**Infrastructure updates:**
- Fix glob bug in package.json scripts section by [@IvanZosimov](https://togithub.com/IvanZosimov) in [https://github.com/actions/setup-java/pull/475](https://togithub.com/actions/setup-java/pull/475)
- Update mocks by [@nikolai-laevskii](https://togithub.com/nikolai-laevskii) in [https://github.com/actions/setup-java/pull/498](https://togithub.com/actions/setup-java/pull/498)
**Documentation changes:**
- Instruction to download custom distribution JDK and install by [@ragsmpl](https://togithub.com/ragsmpl) in [https://github.com/actions/setup-java/pull/500](https://togithub.com/actions/setup-java/pull/500)
##### New Contributors
- [@erwin1](https://togithub.com/erwin1) made their first contribution in [https://github.com/actions/setup-java/pull/397](https://togithub.com/actions/setup-java/pull/397)
- [@Dogacel](https://togithub.com/Dogacel) made their first contribution in [https://github.com/actions/setup-java/pull/478](https://togithub.com/actions/setup-java/pull/478)
- [@anishi1222](https://togithub.com/anishi1222) made their first contribution in [https://github.com/actions/setup-java/pull/489](https://togithub.com/actions/setup-java/pull/489)
- [@nikolai-laevskii](https://togithub.com/nikolai-laevskii) made their first contribution in [https://github.com/actions/setup-java/pull/498](https://togithub.com/actions/setup-java/pull/498)
- [@ragsmpl](https://togithub.com/ragsmpl) made their first contribution in [https://github.com/actions/setup-java/pull/500](https://togithub.com/actions/setup-java/pull/500)
- [@Endi327](https://togithub.com/Endi327) made their first contribution in [https://github.com/actions/setup-java/pull/280](https://togithub.com/actions/setup-java/pull/280)
**Full Changelog**: https://github.com/actions/setup-java/compare/v3...v3.12.0
### [`v3.11.0`](https://togithub.com/actions/setup-java/releases/tag/v3.11.0)
[Compare Source](https://togithub.com/actions/setup-java/compare/v3.10.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](https://togithub.com/actions/setup-java/pull/289)).
```yaml
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](https://adoptium.net/) | [Link](https://adoptium.net/about.html)
| `zulu` | Azul Zulu OpenJDK | [Link](https://www.azul.com/downloads/zulu-community/?package=jdk) | [Link](https://www.azul.com/products/zulu-and-zulu-enterprise/zulu-terms-of-use/) |
| `adopt` or `adopt-hotspot` | AdoptOpenJDK Hotspot | [Link](https://adoptopenjdk.net/) | [Link](https://adoptopenjdk.net/about.html) |
| `adopt-openj9` | AdoptOpenJDK OpenJ9 | [Link](https://adoptopenjdk.net/) | [Link](https://adoptopenjdk.net/about.html) |
| `liberica` | Liberica JDK | [Link](https://bell-sw.com/) | [Link](https://bell-sw.com/liberica_eula/) |
| `microsoft` | Microsoft Build of OpenJDK | [Link](https://www.microsoft.com/openjdk) | [Link](https://docs.microsoft.com/java/openjdk/faq)
| `corretto` | Amazon Corretto Build of OpenJDK | [Link](https://aws.amazon.com/corretto/) | [Link](https://aws.amazon.com/corretto/faqs/)
| `semeru` | IBM Semeru Runtime Open Edition | [Link](https://developer.ibm.com/languages/java/semeru-runtimes/downloads/) | [Link](https://openjdk.java.net/legal/gplv2+ce.html) |
| `oracle` | Oracle JDK | [Link](https://www.oracle.com/java/technologies/downloads/) | [Link](https://java.com/freeuselicense)
### [`v3.10.0`](https://togithub.com/actions/setup-java/releases/tag/v3.10.0)
[Compare Source](https://togithub.com/actions/setup-java/compare/v3.9.0...v3.10.0)
In scope of this release we added support for Oracle JDK ([https://github.com/actions/setup-java/pull/450](https://togithub.com/actions/setup-java/pull/450)).
```yaml
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](https://adoptium.net/) | [Link](https://adoptium.net/about.html)
| `zulu` | Azul Zulu OpenJDK | [Link](https://www.azul.com/downloads/zulu-community/?package=jdk) | [Link](https://www.azul.com/products/zulu-and-zulu-enterprise/zulu-terms-of-use/) |
| `adopt` or `adopt-hotspot` | AdoptOpenJDK Hotspot | [Link](https://adoptopenjdk.net/) | [Link](https://adoptopenjdk.net/about.html) |
| `adopt-openj9` | AdoptOpenJDK OpenJ9 | [Link](https://adoptopenjdk.net/) | [Link](https://adoptopenjdk.net/about.html) |
| `liberica` | Liberica JDK | [Link](https://bell-sw.com/) | [Link](https://bell-sw.com/liberica_eula/) |
| `microsoft` | Microsoft Build of OpenJDK | [Link](https://www.microsoft.com/openjdk) | [Link](https://docs.microsoft.com/java/openjdk/faq)
| `corretto` | Amazon Corretto Build of OpenJDK | [Link](https://aws.amazon.com/corretto/) | [Link](https://aws.amazon.com/corretto/faqs/)
| `oracle` | Oracle JDK | [Link](https://www.oracle.com/java/technologies/downloads/) | [Link](https://java.com/freeuselicense)
### [`v3.9.0`](https://togithub.com/actions/setup-java/releases/tag/v3.9.0)
[Compare Source](https://togithub.com/actions/setup-java/compare/v3.8.0...v3.9.0)
In scope of this release we add support for `.java-version` file ([https://github.com/actions/setup-java/pull/426](https://togithub.com/actions/setup-java/pull/426)). For more information about its usage please refer to the documentation.
```yaml
steps:
- uses: actions/checkout@v3
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: ''
java-version-file: .java-version
- run: java HelloWorldApp.java
```
### [`v3.8.0`](https://togithub.com/actions/setup-java/releases/tag/v3.8.0)
[Compare Source](https://togithub.com/actions/setup-java/compare/v3.6.0...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](https://togithub.com/actions/setup-java/pull/395)) and updated [minimatch](https://togithub.com/actions/setup-java/pull/413) dependency.
### [`v3.6.0`](https://togithub.com/actions/setup-java/releases/tag/v3.6.0)
[Compare Source](https://togithub.com/actions/setup-java/compare/v3.5.1...v3.6.0)
In scope of this release we added [Maven Toolchains Support](https://togithub.com/actions/setup-java/issues/276) and [Maven Toolchains Declaration](https://togithub.com/actions/setup-java/pull/282). Moreover, from this release we use `os.arch` to determine default architecture for runners: [https://github.com/actions/setup-java/pull/376](https://togithub.com/actions/setup-java/pull/376). Besides, we made such changes as:
- [Upgrade @actions/cache from 3.0.0 to 3.0.4](https://togithub.com/actions/setup-java/pull/392) so it respects `SEGMENT_DOWNLOAD_TIMEOUT_MINS`
- [Support Gradle version catalog](https://togithub.com/actions/setup-java/pull/394)
- [Update @actions/core to 1.10.0](https://togithub.com/actions/setup-java/pull/390)
### [`v3.5.1`](https://togithub.com/actions/setup-java/releases/tag/v3.5.1)
[Compare Source](https://togithub.com/actions/setup-java/compare/v3.5.0...v3.5.1)
In scope of this release we change logic for Microsoft Build of OpenJDK. Previously it had hard coded versions. In this release versions were moved to the separate [json file](https://togithub.com/actions/setup-java/blob/main/src/distributions/microsoft/microsoft-openjdk-versions.json). When a new version of Java is released, it can be added to this file and be used without releasing new version of the action.
- Related pull request: [https://github.com/actions/setup-java/pull/383](https://togithub.com/actions/setup-java/pull/383)
### [`v3.5.0`](https://togithub.com/actions/setup-java/releases/tag/v3.5.0)
[Compare Source](https://togithub.com/actions/setup-java/compare/v3.4.1...v3.5.0)
##### Add support for multiple jdks
In scope of this release we add [support for multiple jdks](https://togithub.com/actions/setup-java/pull/368). Customers can specify multiple versions of java through `java-version` input.
```yaml
steps:
- uses: actions/setup-java@v3
with:
distribution: ''
java-version: |
8
11
15
```
##### Besides, we added such changes as:
- Removed restore-keys because it leaded to an unexpected growth of the cache: [https://github.com/actions/setup-java/pull/285](https://togithub.com/actions/setup-java/pull/285)
- Added new files pattern for gradle cache: [https://github.com/actions/setup-java/pull/274](https://togithub.com/actions/setup-java/pull/274)
- Added cache-hit output to the action.yml: [https://github.com/actions/setup-java/pull/373](https://togithub.com/actions/setup-java/pull/373)
### [`v3.4.1`](https://togithub.com/actions/setup-java/releases/tag/v3.4.1)
[Compare Source](https://togithub.com/actions/setup-java/compare/v3.4.0...v3.4.1)
In scope of this release we updated `actions/cache` package as the new version contains fixes for [caching error handling](https://togithub.com/actions/setup-java/pull/350).
### [`v3.4.0`](https://togithub.com/actions/setup-java/releases/tag/v3.4.0)
[Compare Source](https://togithub.com/actions/setup-java/compare/v3.3.0...v3.4.0)
In scope of this release we introduce such changes as:
- Add Java 11.0.15 to Microsoft Build of OpenJDK: [https://github.com/actions/setup-java/pull/331](https://togithub.com/actions/setup-java/pull/331)
- Update versions for Java 17 to 17.0.3 and add aarch64 support to Java 11 for Microsoft Build of OpenJDK: [https://github.com/actions/setup-java/pull/342](https://togithub.com/actions/setup-java/pull/342)
- Fix support for `Zulu OpenJDK` arm64 architecture: [https://github.com/actions/setup-java/pull/339](https://togithub.com/actions/setup-java/pull/339)
- `Sbt-cache`: don't cache some files: [https://github.com/actions/setup-java/pull/332](https://togithub.com/actions/setup-java/pull/332)
### [`v3.3.0`](https://togithub.com/actions/setup-java/releases/tag/v3.3.0)
[Compare Source](https://togithub.com/actions/setup-java/compare/v3.2.0...v3.3.0)
In scope of this pull request we add support for Amazon Corretto Build of OpenJDK ([https://github.com/actions/setup-java/pull/312](https://togithub.com/actions/setup-java/pull/312)).
```yaml
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup-java
uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 11
```
##### Supported distributions
Currently, the following distributions are supported:
| Keyword | Distribution | Official site | License
|-|-|-|-|
| `temurin` | Eclipse Temurin | [Link](https://adoptium.net/) | [Link](https://adoptium.net/about.html)
| `zulu` | Zulu OpenJDK | [Link](https://www.azul.com/downloads/zulu-community/?package=jdk) | [Link](https://www.azul.com/products/zulu-and-zulu-enterprise/zulu-terms-of-use/) |
| `adopt` or `adopt-hotspot` | Adopt OpenJDK Hotspot | [Link](https://adoptopenjdk.net/) | [Link](https://adoptopenjdk.net/about.html) |
| `adopt-openj9` | Adopt OpenJDK OpenJ9 | [Link](https://adoptopenjdk.net/) | [Link](https://adoptopenjdk.net/about.html) |
| `liberica` | Liberica JDK | [Link](https://bell-sw.com/) | [Link](https://bell-sw.com/liberica_eula/) |
| `microsoft` | Microsoft Build of OpenJDK | [Link](https://www.microsoft.com/openjdk) | [Link](https://docs.microsoft.com/java/openjdk/faq)
| `corretto` | Amazon Corretto Build of OpenJDK | [Link](https://aws.amazon.com/corretto/) | [Link](https://aws.amazon.com/corretto/faqs/)
### [`v3.2.0`](https://togithub.com/actions/setup-java/releases/tag/v3.2.0)
[Compare Source](https://togithub.com/actions/setup-java/compare/v3.1.1...v3.2.0)
This release introduces dependency caching support for sbt ([https://github.com/actions/setup-java/pull/302](https://togithub.com/actions/setup-java/pull/302)).
##### Caching sbt dependencies
```yml
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'sbt'
- name: Build with SBT
run: sbt package
```
### [`v3.1.1`](https://togithub.com/actions/setup-java/releases/tag/v3.1.1)
[Compare Source](https://togithub.com/actions/setup-java/compare/v3.1.0...v3.1.1)
This release introduces new output cache-hit ([https://github.com/actions/setup-java/pull/275](https://togithub.com/actions/setup-java/pull/275)) and update of `actions/cache` dependency to 2.0.2 ([https://github.com/actions/setup-java/pull/317](https://togithub.com/actions/setup-java/pull/317))
##### Add "cache-hit" output
The `cache-hit` output contains boolean value indicating that an exact match was found for the key. It shows that the action uses already existing cache or not. The output is available only if cache is enabled.
##### Update actions/cache to 2.0.2
We updated `actions/cache` package as the new version contains fixes related to GHES 3.5 ([https://github.com/actions/setup-java/pull/317](https://togithub.com/actions/setup-java/pull/317))
### [`v3.1.0`](https://togithub.com/actions/setup-java/releases/tag/v3.1.0)
[Compare Source](https://togithub.com/actions/setup-java/compare/v3...v3.1.0)
In scope of this release we added [support for caching from GHES 3.5](https://togithub.com/actions/setup-java/pull/308) and fixed download issue for files > 2GB during restore.
##### Updated dependencies:
- bumped `minimist` from `1.2.5` to `1.2.6`.
- updated `actions/cache` dependency to 2.0.0 version
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 this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
v3
->v4.1.0
Release Notes
actions/setup-java (actions/setup-java)
### [`v4.1.0`](https://togithub.com/actions/setup-java/releases/tag/v4.1.0) [Compare Source](https://togithub.com/actions/setup-java/compare/v4.0.0...v4.1.0) #### What's Changed - Added Windows Arm64 Support for Windows Arm64 Runners by [@mahabaleshwars](https://togithub.com/mahabaleshwars) in [https://github.com/actions/setup-java/pull/595](https://togithub.com/actions/setup-java/pull/595) - feat: bump actions/checkout and actions/setup-java to v4 by [@kbdharun](https://togithub.com/kbdharun) in [https://github.com/actions/setup-java/pull/533](https://togithub.com/actions/setup-java/pull/533) - Handle authorization when the token is undefined by [@peter-murray](https://togithub.com/peter-murray) in [https://github.com/actions/setup-java/pull/556](https://togithub.com/actions/setup-java/pull/556) - Documentation update of Java 21 by [@Okeanos](https://togithub.com/Okeanos) in [https://github.com/actions/setup-java/pull/566](https://togithub.com/actions/setup-java/pull/566) - Documentation update about maven-gpg-plugin version note by [@IvanZosimov](https://togithub.com/IvanZosimov) in [https://github.com/actions/setup-java/pull/570](https://togithub.com/actions/setup-java/pull/570) - Oracle JDK 21 support by [@jdubois](https://togithub.com/jdubois) in [https://github.com/actions/setup-java/pull/538](https://togithub.com/actions/setup-java/pull/538) - Fix typo in configuration example by [@Bananeweizen](https://togithub.com/Bananeweizen) in [https://github.com/actions/setup-java/pull/572](https://togithub.com/actions/setup-java/pull/572) #### New Contributors - [@kbdharun](https://togithub.com/kbdharun) made their first contribution in [https://github.com/actions/setup-java/pull/533](https://togithub.com/actions/setup-java/pull/533) - [@peter-murray](https://togithub.com/peter-murray) made their first contribution in [https://github.com/actions/setup-java/pull/556](https://togithub.com/actions/setup-java/pull/556) - [@jdubois](https://togithub.com/jdubois) made their first contribution in [https://github.com/actions/setup-java/pull/538](https://togithub.com/actions/setup-java/pull/538) - [@Bananeweizen](https://togithub.com/Bananeweizen) made their first contribution in [https://github.com/actions/setup-java/pull/572](https://togithub.com/actions/setup-java/pull/572) - [@mahabaleshwars](https://togithub.com/mahabaleshwars) made their first contribution in [https://github.com/actions/setup-java/pull/595](https://togithub.com/actions/setup-java/pull/595) **Full Changelog**: https://github.com/actions/setup-java/compare/v4...v4.1.0 ### [`v4.0.0`](https://togithub.com/actions/setup-java/releases/tag/v4.0.0) [Compare Source](https://togithub.com/actions/setup-java/compare/v3.13.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](https://togithub.com/aparnajyothi-y) in [https://github.com/actions/setup-java/pull/558](https://togithub.com/actions/setup-java/pull/558) #### Non-breaking changes - Adding support for microsoft openjdk 21.0.0 by [@ralfstuckert](https://togithub.com/ralfstuckert) in [https://github.com/actions/setup-java/pull/546](https://togithub.com/actions/setup-java/pull/546) - Update [@actions/cache](https://togithub.com/actions/cache) dependency and documentation by [@IvanZosimov](https://togithub.com/IvanZosimov) in [https://github.com/actions/setup-java/pull/549](https://togithub.com/actions/setup-java/pull/549) - Implementation of the cache-dependency-path option to control caching dependency by [@itchyny](https://togithub.com/itchyny) in [https://github.com/actions/setup-java/pull/499](https://togithub.com/actions/setup-java/pull/499) #### New Contributors - [@ralfstuckert](https://togithub.com/ralfstuckert) made their first contribution in [https://github.com/actions/setup-java/pull/546](https://togithub.com/actions/setup-java/pull/546) - [@itchyny](https://togithub.com/itchyny) made their first contribution in [https://github.com/actions/setup-java/pull/499](https://togithub.com/actions/setup-java/pull/499) **Full Changelog**: https://github.com/actions/setup-java/compare/v3...v4.0.0 ### [`v3.13.0`](https://togithub.com/actions/setup-java/releases/tag/v3.13.0) [Compare Source](https://togithub.com/actions/setup-java/compare/v3.12.0...v3.13.0) ##### What's changed In the scope of this release, support for Dragonwell JDK was added by [@Accelerator1996](https://togithub.com/Accelerator1996) in [https://github.com/actions/setup-java/pull/532](https://togithub.com/actions/setup-java/pull/532) ```yaml 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](https://togithub.com/gnodet) in [https://github.com/actions/setup-java/pull/503](https://togithub.com/actions/setup-java/pull/503) - Fix typo and remove unintentional(?) word by [@CyberFlameGO](https://togithub.com/CyberFlameGO) in [https://github.com/actions/setup-java/pull/518](https://togithub.com/actions/setup-java/pull/518) - Fix usage link within the README.md file by [@dassiorleando](https://togithub.com/dassiorleando) in [https://github.com/actions/setup-java/pull/525](https://togithub.com/actions/setup-java/pull/525) ##### New Contributors - [@CyberFlameGO](https://togithub.com/CyberFlameGO) made their first contribution in [https://github.com/actions/setup-java/pull/518](https://togithub.com/actions/setup-java/pull/518) - [@dassiorleando](https://togithub.com/dassiorleando) made their first contribution in [https://github.com/actions/setup-java/pull/525](https://togithub.com/actions/setup-java/pull/525) - [@gnodet](https://togithub.com/gnodet) made their first contribution in [https://github.com/actions/setup-java/pull/503](https://togithub.com/actions/setup-java/pull/503) - [@Accelerator1996](https://togithub.com/Accelerator1996) made their first contribution in [https://github.com/actions/setup-java/pull/532](https://togithub.com/actions/setup-java/pull/532) **Full Changelog**: https://github.com/actions/setup-java/compare/v3...v3.13.0 ### [`v3.12.0`](https://togithub.com/actions/setup-java/releases/tag/v3.12.0) [Compare Source](https://togithub.com/actions/setup-java/compare/v3.11.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](https://togithub.com/erwin1) in [https://github.com/actions/setup-java/pull/397](https://togithub.com/actions/setup-java/pull/397) - Fix sbt/scala cache key by [@Dogacel](https://togithub.com/Dogacel) in [https://github.com/actions/setup-java/pull/478](https://togithub.com/actions/setup-java/pull/478) - Corretto toolcache folder name fix by [@IvanZosimov](https://togithub.com/IvanZosimov) in [https://github.com/actions/setup-java/pull/480](https://togithub.com/actions/setup-java/pull/480) - Update versions of Oracle JDK and Microsoft Build of OpenJDK by [@anishi1222](https://togithub.com/anishi1222) in [https://github.com/actions/setup-java/pull/489](https://togithub.com/actions/setup-java/pull/489) - Update Oracle JDK download URL calculation by [@nikolai-laevskii](https://togithub.com/nikolai-laevskii) in [https://github.com/actions/setup-java/pull/507](https://togithub.com/actions/setup-java/pull/507) **Feature implementations:** - Add versions properties to cache by [@Endi327](https://togithub.com/Endi327) in [https://github.com/actions/setup-java/pull/280](https://togithub.com/actions/setup-java/pull/280) **Resolving dependencies issues:** - Remove implicit dependencies by [@nikolai-laevskii](https://togithub.com/nikolai-laevskii) in [https://github.com/actions/setup-java/pull/494](https://togithub.com/actions/setup-java/pull/494) - Update xml2js by [@dmitry-shibanov](https://togithub.com/dmitry-shibanov) in [https://github.com/actions/setup-java/pull/484](https://togithub.com/actions/setup-java/pull/484) - Update dependencies by [@IvanZosimov](https://togithub.com/IvanZosimov) in [https://github.com/actions/setup-java/pull/511](https://togithub.com/actions/setup-java/pull/511) **Infrastructure updates:** - Fix glob bug in package.json scripts section by [@IvanZosimov](https://togithub.com/IvanZosimov) in [https://github.com/actions/setup-java/pull/475](https://togithub.com/actions/setup-java/pull/475) - Update mocks by [@nikolai-laevskii](https://togithub.com/nikolai-laevskii) in [https://github.com/actions/setup-java/pull/498](https://togithub.com/actions/setup-java/pull/498) **Documentation changes:** - Instruction to download custom distribution JDK and install by [@ragsmpl](https://togithub.com/ragsmpl) in [https://github.com/actions/setup-java/pull/500](https://togithub.com/actions/setup-java/pull/500) ##### New Contributors - [@erwin1](https://togithub.com/erwin1) made their first contribution in [https://github.com/actions/setup-java/pull/397](https://togithub.com/actions/setup-java/pull/397) - [@Dogacel](https://togithub.com/Dogacel) made their first contribution in [https://github.com/actions/setup-java/pull/478](https://togithub.com/actions/setup-java/pull/478) - [@anishi1222](https://togithub.com/anishi1222) made their first contribution in [https://github.com/actions/setup-java/pull/489](https://togithub.com/actions/setup-java/pull/489) - [@nikolai-laevskii](https://togithub.com/nikolai-laevskii) made their first contribution in [https://github.com/actions/setup-java/pull/498](https://togithub.com/actions/setup-java/pull/498) - [@ragsmpl](https://togithub.com/ragsmpl) made their first contribution in [https://github.com/actions/setup-java/pull/500](https://togithub.com/actions/setup-java/pull/500) - [@Endi327](https://togithub.com/Endi327) made their first contribution in [https://github.com/actions/setup-java/pull/280](https://togithub.com/actions/setup-java/pull/280) **Full Changelog**: https://github.com/actions/setup-java/compare/v3...v3.12.0 ### [`v3.11.0`](https://togithub.com/actions/setup-java/releases/tag/v3.11.0) [Compare Source](https://togithub.com/actions/setup-java/compare/v3.10.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](https://togithub.com/actions/setup-java/pull/289)). ```yaml 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](https://adoptium.net/) | [Link](https://adoptium.net/about.html) | `zulu` | Azul Zulu OpenJDK | [Link](https://www.azul.com/downloads/zulu-community/?package=jdk) | [Link](https://www.azul.com/products/zulu-and-zulu-enterprise/zulu-terms-of-use/) | | `adopt` or `adopt-hotspot` | AdoptOpenJDK Hotspot | [Link](https://adoptopenjdk.net/) | [Link](https://adoptopenjdk.net/about.html) | | `adopt-openj9` | AdoptOpenJDK OpenJ9 | [Link](https://adoptopenjdk.net/) | [Link](https://adoptopenjdk.net/about.html) | | `liberica` | Liberica JDK | [Link](https://bell-sw.com/) | [Link](https://bell-sw.com/liberica_eula/) | | `microsoft` | Microsoft Build of OpenJDK | [Link](https://www.microsoft.com/openjdk) | [Link](https://docs.microsoft.com/java/openjdk/faq) | `corretto` | Amazon Corretto Build of OpenJDK | [Link](https://aws.amazon.com/corretto/) | [Link](https://aws.amazon.com/corretto/faqs/) | `semeru` | IBM Semeru Runtime Open Edition | [Link](https://developer.ibm.com/languages/java/semeru-runtimes/downloads/) | [Link](https://openjdk.java.net/legal/gplv2+ce.html) | | `oracle` | Oracle JDK | [Link](https://www.oracle.com/java/technologies/downloads/) | [Link](https://java.com/freeuselicense) ### [`v3.10.0`](https://togithub.com/actions/setup-java/releases/tag/v3.10.0) [Compare Source](https://togithub.com/actions/setup-java/compare/v3.9.0...v3.10.0) In scope of this release we added support for Oracle JDK ([https://github.com/actions/setup-java/pull/450](https://togithub.com/actions/setup-java/pull/450)). ```yaml 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](https://adoptium.net/) | [Link](https://adoptium.net/about.html) | `zulu` | Azul Zulu OpenJDK | [Link](https://www.azul.com/downloads/zulu-community/?package=jdk) | [Link](https://www.azul.com/products/zulu-and-zulu-enterprise/zulu-terms-of-use/) | | `adopt` or `adopt-hotspot` | AdoptOpenJDK Hotspot | [Link](https://adoptopenjdk.net/) | [Link](https://adoptopenjdk.net/about.html) | | `adopt-openj9` | AdoptOpenJDK OpenJ9 | [Link](https://adoptopenjdk.net/) | [Link](https://adoptopenjdk.net/about.html) | | `liberica` | Liberica JDK | [Link](https://bell-sw.com/) | [Link](https://bell-sw.com/liberica_eula/) | | `microsoft` | Microsoft Build of OpenJDK | [Link](https://www.microsoft.com/openjdk) | [Link](https://docs.microsoft.com/java/openjdk/faq) | `corretto` | Amazon Corretto Build of OpenJDK | [Link](https://aws.amazon.com/corretto/) | [Link](https://aws.amazon.com/corretto/faqs/) | `oracle` | Oracle JDK | [Link](https://www.oracle.com/java/technologies/downloads/) | [Link](https://java.com/freeuselicense) ### [`v3.9.0`](https://togithub.com/actions/setup-java/releases/tag/v3.9.0) [Compare Source](https://togithub.com/actions/setup-java/compare/v3.8.0...v3.9.0) In scope of this release we add support for `.java-version` file ([https://github.com/actions/setup-java/pull/426](https://togithub.com/actions/setup-java/pull/426)). For more information about its usage please refer to the documentation. ```yaml steps: - uses: actions/checkout@v3 - name: Setup java uses: actions/setup-java@v3 with: distribution: '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 this update again.
This PR has been generated by Mend Renovate. View repository job log here.