Skip to content

Add input to override Java version #34

Closed
@sormuras

Description

@sormuras

Add an input named install-as-version to this action enabling an override of the Java version passed to the underlying actions/setup-java action.

Motivation

The underlying actions/setup-java action does NOT allow arbitrary values for its java-version input. It uses it to determine the target directory of to where a jdkFile is extracted to. It also seems to apply a merging logic when it comes to different releases of the same feature release version number: for example, 19, 19.0.0, 19.99.99 and others (including 19.99.99+99-jextract) are treated as 19 was given.

This prevents installations of multiple releases of JDK N.

Proposal:

  install-as-version:
    description: 'Controls which value is passed as `java-version` to `actions/setup-java`'
    default: PARSE_URI
    required: true

Supported values of install-as-version:

This will control/change the output named version of this action.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions