Skip to content

Releases: actions/setup-java

v3.9.0

14 Dec 13:33
1df8dbe
Compare
Choose a tag to compare

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

06 Dec 14:20
c3ac5dd
Compare
Choose a tag to compare

In scope of this release we added logic to pass the token input through on GHES for Microsoft Build of OpenJDK (#395) and updated minimatch dependency.

v3.6.0

18 Oct 12:22
de1bb2b
Compare
Choose a tag to compare

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:

v3.5.1

26 Sep 14:07
a18c333
Compare
Choose a tag to compare

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

08 Sep 13:59
d854b6d
Compare
Choose a tag to compare

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

Besides, we added such changes as:

  • Removed restore-keys because it leaded to an unexpected growth of the cache: #285
  • Added new files pattern for gradle cache: #274
  • Added cache-hit output to the action.yml: #373

v3.4.1

11 Jul 14:03
2c7a487
Compare
Choose a tag to compare

In scope of this release we updated actions/cache package as the new version contains fixes for caching error handling.

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)