Releases: actions/setup-java
Release list
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
15Besides, we added such changes as:
v3.4.1
In scope of this release we updated actions/cache package as the new version contains fixes for caching error handling.
v3.4.0
In scope of this release we introduce such changes as:
v3.3.0
In scope of this pull request we add support for Amazon Corretto Build of OpenJDK (#312).
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup-java
uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 11Supported distributions
Currently, the following distributions are supported:
| Keyword | Distribution | Official site | License |
|---|---|---|---|
temurin |
Eclipse Temurin | Link | Link |
zulu |
Zulu OpenJDK | Link | Link |
adopt or adopt-hotspot |
Adopt OpenJDK Hotspot | Link | Link |
adopt-openj9 |
Adopt OpenJDK OpenJ9 | Link | Link |
liberica |
Liberica JDK | Link | Link |
microsoft |
Microsoft Build of OpenJDK | Link | Link |
corretto |
Amazon Corretto Build of OpenJDK | Link | Link |
v3.2.0
This release introduces dependency caching support for sbt (#302).
Caching sbt dependencies
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'sbt'
- name: Build with SBT
run: sbt packagev3.1.1
This release introduces new output cache-hit (#275) and update of actions/cache dependency to 2.0.2 (#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 (#317)
v3.1.0
In scope of this release we added support for caching from GHES 3.5 and fixed download issue for files > 2GB during restore.
Updated dependencies:
- bumped
minimistfrom1.2.5to1.2.6. - updated
actions/cachedependency to 2.0.0 version
v3.0.0
In scope of this release we changed version of the runtime Node.js for the setup-java action and updated package-lock.json file to v2.
Breaking Changes
With the update to Node 16 in #290, all scripts will now be run with Node 16 rather than Node 12.
v2.5.0
In scope of this pull request we add support for Microsoft Build of OpenJDK (#252).
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup-java
uses: actions/setup-java@v2
with:
distribution: microsoft
java-version: 11Supported distributions
Currently, the following distributions are supported:
| Keyword | Distribution | Official site | License |
|---|---|---|---|
temurin |
Eclipse Temurin | Link | Link |
zulu |
Zulu OpenJDK | Link | Link |
adopt or adopt-hotspot |
Adopt OpenJDK Hotspot | Link | Link |
adopt-openj9 |
Adopt OpenJDK OpenJ9 | Link | Link |
liberica |
Liberica JDK | Link | Link |
microsoft |
Microsoft Build of OpenJDK | Link | Link |