Add support for java.version file (#426)

This commit is contained in:
Evgenii Korolevskii 2022-12-13 12:45:14 +01:00 committed by GitHub
parent c3ac5dd0ed
commit 1df8dbefe2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 358 additions and 56 deletions

View file

@ -23,7 +23,9 @@ This action allows you to work with Java and Scala projects.
## Usage
- `java-version`: _(required)_ The Java version to set up. Takes a whole or [semver](#supported-version-syntax) Java version.
- `java-version`: The Java version that is going to be set up. Takes a whole or [semver](#supported-version-syntax) Java version. If not specified, the action will expect `java-version-file` input to be specified.
- `java-version-file`: The path to the `.java-version` file. See more details in [about `.java-version` file](docs/advanced-usage.md#Java-version-file).
- `distribution`: _(required)_ Java [distribution](#supported-distributions).