You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced-usage.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -526,19 +526,19 @@ steps:
526
526
```
527
527
528
528
## Java version file
529
-
If the `java-version-file` input is specified, the action will extract the version from the file and install it.
530
-
531
-
Supported files are .java-version and .tool-versions.
532
-
In .java-version file, only the version should be specified, e.g., 17.0.7.
533
-
In .tool-versions file, java version should be preceded by the java keyword, e.g., java 17.0.7.
534
-
.java-versionrecognizes 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).
535
-
536
-
If both java-version and java-version-file inputs are provided, the java-version input will be used.
529
+
If the `java-version-file` input is specified, the action will extract the version from the file and install it.
530
+
531
+
Supported files are .java-version and .tool-versions.
532
+
In .java-version file, only the version should be specified (e.g., 17.0.7).
533
+
In .tool-versions file, java version should be preceded by the java keyword (e.g., java 17.0.7).
534
+
The `.java-version` file recognizes all variants of the version description according to [jenv](https://github.com/jenv/jenv). Similarly, the `.tool-versions` file supports version specifications in accordance with [asdf](https://github.com/asdf-vm/asdf) standards, adhering to Semantic Versioning (semver).
535
+
536
+
If both java-version and java-version-file inputs are provided, the java-version input will be used.
537
537
538
538
Valid entry options:
539
539
```
540
540
major versions: 8, 11, 16, 17, 21
541
-
more specific versions: 1.8.0.2, 17.0, 11.0, 11.0.4, 8.0.232, 8.0.282+8
541
+
more specific versions: 8.0.282+8, 8.0.232, 11.0, 11.0.4, 17.0
542
542
early access (EA) versions: 15-ea, 15.0.0-ea
543
543
versions with specified distribution: openjdk64-11.0.2
0 commit comments