Releases: actions/setup-java
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 #397
- Fix sbt/scala cache key by @Dogacel in #478
- Corretto toolcache folder name fix by @IvanZosimov in #480
- Update versions of Oracle JDK and Microsoft Build of OpenJDK by @anishi1222 in #489
- Update Oracle JDK download URL calculation by @nikolai-laevskii in #507
Feature implementations:
Resolving dependencies issues:
- Remove implicit dependencies by @nikolai-laevskii in #494
- Update xml2js by @dmitry-shibanov in #484
- Update dependencies by @IvanZosimov in #511
Infrastructure updates:
- Fix glob bug in package.json scripts section by @IvanZosimov in #475
- Update mocks by @nikolai-laevskii in #498
Documentation changes:
New Contributors
- @erwin1 made their first contribution in #397
- @Dogacel made their first contribution in #478
- @anishi1222 made their first contribution in #489
- @nikolai-laevskii made their first contribution in #498
- @ragsmpl made their first contribution in #500
- @Endi327 made their first contribution in #280
Full Changelog: v3...v3.12.0
v1.4.4
In scope of this release we updated actions/core to 1.10.0 for v1: #467
v2.5.1
In scope of this release we updated actions/core to 1.10.0 for v2 major tag: #466
v3.11.0
In scope of this release we added support for IBM Semeru (OpenJ9) JDK (#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 (#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 (#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
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: #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
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. 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: #383
v3.5.0
Add support for multiple jdks
In scope of this release we add support for multiple jdks. Customers can specify multiple versions of java through java-version
input.
steps:
- uses: actions/setup-java@v3
with:
distribution: '<distribution>'
java-version: |
8
11
15