Skip to content

Releases: actions/setup-java

v3.4.0

21 Jun 13:55
16cca54
Compare
Choose a tag to compare

In scope of this release we introduce such changes as:

  • Add Java 11.0.15 to Microsoft Build of OpenJDK: #331
  • Update versions for Java 17 to 17.0.3 and add aarch64 support to Java 11 for Microsoft Build of OpenJDK: #342
  • Fix support for Zulu OpenJDK arm64 architecture: #339
  • Sbt-cache: don't cache some files: #332

v3.3.0

04 May 11:55
860f600
Compare
Choose a tag to compare

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: 11

Supported 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

26 Apr 10:05
4fe61d2
Compare
Choose a tag to compare

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 package

v3.1.1

11 Apr 14:03
9519cf1
Compare
Choose a tag to compare

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

01 Apr 09:07
0aa6f2a
Compare
Choose a tag to compare

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 minimist from 1.2.5 to 1.2.6.
  • updated actions/cache dependency to 2.0.0 version

v3.0.0

24 Feb 13:22
f69f00b
Compare
Choose a tag to compare

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

21 Dec 10:41
f0bb916
Compare
Choose a tag to compare

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: 11

Supported 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

v2.4.0

29 Nov 11:10
5f00602
Compare
Choose a tag to compare

In scope of this pull request we add support for Liberica JDK (#225).

steps:
  - name: Checkout
    uses: actions/checkout@v2
  - name: Setup-java
    uses: actions/setup-java@v2
    with:
      distribution: liberica
      java-version: 11

Supported distributions

Currently, the following distributions are supported:

Keyword Distribution Official site License
zulu Zulu OpenJDK Link Link
adopt or adopt-hotspot Adopt OpenJDK Hotspot Link Link
adopt-openj9 Adopt OpenJDK OpenJ9 Link Link
temurin Eclipse Temurin Link Link
liberica Liberica JDK Link Link

Update actions/cache dependency to 1.0.8 version.

We updated actions/cache depdendency to the latest version (1.0.8). For more information please refer to the toolkit/cache.

v2.3.1

29 Sep 10:28
8db439b
Compare
Choose a tag to compare

In this release we updated dependencies from the dependabot. In scope of this pull request http-client version was bumped #222. Besides the release resolves possible issues related to removing gpg private key pull request #226.

v2.3.0

23 Aug 12:24
3bc31aa
Compare
Choose a tag to compare

This release introduces dependency caching support (#193).

Now the action has a built-in functionality for caching and restoring dependencies. Supported package managers are Maven and Gradle. The cache input is optional, and caching is turned off by default.

Caching gradle dependencies

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
  with:
    distribution: 'temurin'
    java-version: '11'
    cache: 'gradle'
- run: ./gradlew build

Caching maven dependencies

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
  with:
    distribution: 'temurin'
    java-version: '11'
    cache: 'maven'
- name: Build with Maven
  run: mvn -B package --file pom.xml