resolve comments

This commit is contained in:
Maxim Lobanov 2021-03-09 11:21:31 +03:00
parent c65c532df3
commit 7006d0be41
3 changed files with 27 additions and 28 deletions

View file

@ -1,7 +1,7 @@
# Switching to V2
## Java distribution
The major breaking change in V2 is the new mandatory input `distribution`. This field should be specified with one of supported distributions. See [Supported distributions](../README.md#Supported-distributions) section for the list of available options.
Use `zulu` keyword if you would like to continue using the same distribution as in the V1.
The major breaking change in V2 is the new mandatory `distribution` input. This field should be specified with one of supported distributions. See [Supported distributions](../README.md#Supported-distributions) for a list of available options.
Use the `zulu` keyword if you would like to continue using the same distribution as in the V1.
```yaml
steps:
- uses: actions/checkout@v2
@ -16,7 +16,7 @@ steps:
**General recommendation** — configure CI with the same distribution that is used on your local dev machine.
## Installing custom Java distribution from local file
Since `distribution` input is required in V2, you should specify it as `jdkFile` to continue installing Java from local file
Since the `distribution` input is required in V2, you should specify it using `jdkFile` to continue installing Java from a local file on the runner
```yaml
steps:
- run: |
@ -31,5 +31,5 @@ steps:
```
## Dropping legacy Java version syntax 1.x
V1 supported legacy Java syntax like `1.8` (same as `8`), `1.8.0.212` (same as `8.0.212`).
V2 dropped support of old syntax so workflows should be changed accordingly.
V1 supported legacy Java syntax such as `1.8` (same as `8`) and `1.8.0.212` (same as `8.0.212`).
V2 dropped support for legacy syntax so workflows should be updated accordingly.