Skip to content

Get Java version from .tool-versions file #579

Description

@paulschreiber

Description:
Please add support for getting the Java version from the .tool-versions file.

Justification:
This is supported by actions/setup-node, which we also use. Having a separate .java-version file (added in 3.9.0) is less efficient.

Activity

  1. v-aparnajyothi-y commented on Dec 29, 2023

    @v-aparnajyothi-y
    Contributor

    Hello @paulschreiber, Thanks for the feature request, we will take a look and get back to you with our decision.

  2. v-mahabaleshwars commented on Jul 24, 2024

    @v-mahabaleshwars
    Contributor

    Hi @paulschreiber,
    We have added the functionality to extract the Java version from a .tool-versions file in actions/setup-java@v4.2.2. Hence we are proceeding to close this issue.
    Please feel free to reach us in case of any further concerns/clarifications needed.

  3. paulschreiber commented on Jul 24, 2024

    @paulschreiber
    Author

    Thanks. Can you update the README with an example? i.e. do I use
    java-version-file: '.tool-versions'

    as with actions/setup-node?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature requestNew feature or request to improve the current logic

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions