New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
actions/setup-java@v2 - Documentation #134
Conversation
Co-authored-by: George Adams <george.adams@microsoft.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
README.md
Outdated
- V2 requires you to specify distribution along with the version. V1 defaults to Zulu OpenJDK, only version input is required. Follow [the migration guide](docs/switching-to-v2.md) to switch from V1 to V2 | ||
|
||
## Usage | ||
Input `distribution` is mandatory. See [Supported distributions](../README.md#Supported-distributions) section for the list of available options. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Input `distribution` is mandatory. See [Supported distributions](../README.md#Supported-distributions) section for the list of available options. | |
Input `distribution` is mandatory. See [Supported distributions](../README.md#Supported-distributions) for a list of available options. |
The use of "adoptium" as a distribution name that is actuality will be getting the AdoptOpenJDK distro builds seems wrong here. So are the links to the AOJ site instead of the Adoptium site. AFAIK Adoptium as an Eclipse project is a "...continuation of the original AdoptOpenJDK mission", but Eclipse Adoptium builds will be Eclipse Adoptium builds, and not AdoptOpenJDK builds. Adoptium and AdoptOpenJDK are two separate distros, produced by separate organizations, using separate tests and governance, and [potentially] separate terms of use. The actual binaries will [presumably] show different distro names in their version strings. And for a given java version sepcified [e.g. a past 8.0.252, or a future 11.0.19] there may be distro binaries available from one of those two distros, or both, or neither. Explicitly specifying one distro in the "distribution" field and getting another distorts binaries would clearly be wrong. So either the word "adoptium" should be changed to something that properly refers to AdoptOpenJDK distro and will not conflict with Adoptium distro when it starts providing binaries, or the meaning of using "adoptium" should change to [only] using bits provided by the Eclipse Adoptium project, and not bits that come from some other distro. Note: If the choice is made to change the name used to specify the AdoptOpenJDK distro, that choice should likely avoid using the word "openjdk" in the distro name for the obvious reasons (including trademark rules and the avoidance of assymetric use of the term openjdk across the various choices for distros of OpenJDK). Names like "adopt" and "AOJ" probably work in this regard. |
Thanks for the info @giltene My assumption based off of https://blog.adoptopenjdk.net/2020/06/adoptopenjdk-to-join-the-eclipse-foundation/ was that down the road
As well as
Even if you go to https://projects.eclipse.org/projects/adoptium/downloads there is currently nothing. It is confusing though and I like the suggestion to use |
In the "basic" example description in the README, we should change the distro selection from "adopt" to "zulu". (We can also mention the other distro options explicitly in the comment, to avoid having people jump somewhere else just to find out possible spelling). For the 60K+ current users of V1, filling in zulu as the distribution (which is a new required property) will be the "compatible" entry, and is therefore the obvious example choice if only one choice is shown as an exmaple. It is the most straightforward way to not break (especially since there are lots of currently used versions in workflow that zulu provides and adopt does not). |
@giltene no users will be broken? All V1 users will continue to be able to use Zulu going forwards. If they are explicitly making the decision to bump to V2 then they can also make the code change to choose their vendor. As pointed out before, AdoptOpenJDK is already preinstalled on all actions environments so using adopt in the example seems the most logical approach going forwards. |
@giltene We're going to update the Given that As mentioned if users are pinned to |
Description:
This pull-request updates documentation according to setup-java@v2
Looks like we had a ton of different use-cases in README file and it becomes unreadable. I have decided to leave multiple base use-cases in README and move other use-cases to the separate file
advanced-usage.md
.Also, added guide for migration from V1 to V2 since it brings a bunch of breaking changes.
I would be very appreciate for some review and suggestions about wording to sound native :)
Note: we have decided to split changes to a few pull-requests to simplify review process: