Skip to content

Only download jdk-17.0.0 with oracle distribution and java-version 17? #944

@HTHou

Description

@HTHou

Description:
When using the following config, it seems that the oracle jdk 17.0.0 downloaded and installed.

        uses: actions/setup-java@v4
        with:
          distribution: oracle
          java-version: 17
Run actions/setup-java@v4
  with:
    distribution: oracle
    java-version: 17
    java-package: jdk
    check-latest: false
    server-id: github
    server-username: GITHUB_ACTOR
    server-password: GITHUB_TOKEN
    overwrite-settings: true
    job-status: success
    token: ***
  env:
    MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
    MAVEN_ARGS: --batch-mode --no-transfer-progress
    DEVELOCITY_ACCESS_KEY: ***
    GITHUB_TOKEN: ***
Installed distributions
  Trying to resolve the latest version from remote
  Resolved latest version as 17
  Trying to download...
  Downloading Java 17 (Oracle) from https://download.oracle.com/java/17/archive/jdk-17_linux-x64_bin.tar.gz ...
  Extracting Java archive...
  /usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/d30d12ee-64ed-4b58-b2c1-902c8f040390 -f /home/runner/work/_temp/7c76d087-7c67-4b0a-8701-78984b89e55c
  Java 17 was downloaded
  Setting Java 17 as the default
  Creating toolchains.xml for JDK version 17 from oracle

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Expected behavior:
Download the lastest oracle jdk-17, such as 17.0.16.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions