update the advanced doc and readme file to specify tool version changes

This commit is contained in:
mahabaleshwars 2024-03-12 18:19:03 +05:30
parent 33cfd28cb4
commit b71bea459a
2 changed files with 5 additions and 3 deletions

View file

@ -525,13 +525,14 @@ steps:
something_other
```
## Java-version file
## Java version file
If the `java-version-file` input is specified, the action will extract the version from the file and install it.
It recognizes all variants of the version description according to [jenv](https://github.com/jenv/jenv).
Supported files are .java-version and .tool-versions.
In .java-version file, only the version should be specified, e.g., 17.0.7.
In .tool-versions file, java version should be preceded by the java keyword, e.g., java 17.0.7.
.java-version recognizes all variants of the version description according to [jenv](https://github.com/jenv/jenv) and .tool-version recognizes all variants of the version description according to [asdf](https://github.com/asdf-vm/asdf).
If both java-version and java-version-file inputs are provided, the java-version input will be used.
Valid entry options: