mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 09:26:46 +00:00
Documentation updated to add tool version description
This commit is contained in:
parent
0d65cdab90
commit
4253d87ec0
1 changed files with 3 additions and 0 deletions
|
@ -528,6 +528,9 @@ steps:
|
|||
## Java-version file
|
||||
If the `java-version-file` input is specified, the action will try to extract the version from the file and install it.
|
||||
Action is able to recognize all variants of the version description according to [jenv](https://github.com/jenv/jenv).
|
||||
If both the java-version and the java-version-file inputs are provided then the java-version input is used.
|
||||
.java-version and .tool-versions are the supported file.In .java-version file, only version should be specified e.g “17.0.7 ”while in .tool-versions file, java version should be followed java keyword e.g “java 17.0.7”.
|
||||
|
||||
Valid entry options:
|
||||
```
|
||||
major versions: 8, 11, 16, 17, 21
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue