Skip to content
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

Tracking: V2 setup-java #98

Closed
7 tasks done
konradpabjan opened this issue Aug 24, 2020 · 8 comments
Closed
7 tasks done

Tracking: V2 setup-java #98

konradpabjan opened this issue Aug 24, 2020 · 8 comments
Assignees

Comments

@konradpabjan
Copy link
Collaborator

konradpabjan commented Aug 24, 2020

This issue will track the progress of the v2 version of setup-java.

One of the core goals of the v2 version is to support downloading different distributions of Java. Currently Zulu builds of OpenJDK are downloaded and installed but with v2 we will be adding support for adoptOpenJDK builds of OpenJDK as well. Because this is a major change, a v2 major update is warranted.

One of the main goals of v2 is also to make setup-java extensible so that other distributions can be supported as well.

Major TODO items:

  • Create ADR that outlines and documents the roadmap and plan for the v2 version: V2 setup-java ADR #97
  • Accept ADR after getting feedback from the community
  • Create v2-preview branch
  • Implement all the necessary changes and merge them into the v2-preview branch
  • Gather feedback and test using the v2-preview branch
  • After being comfortable with the v2-preview changes, merge the branch into main
  • Update public docs, and starter workflow to use v2 instead of v1 tags
@konradpabjan konradpabjan self-assigned this Aug 24, 2020
@konradpabjan konradpabjan pinned this issue Aug 24, 2020
@giltene
Copy link
Contributor

giltene commented Aug 26, 2020

I would suggest changing the stated goal (in the PR and ADR) to adding support for multiple distos (rather than a specific one). I believe that is the actual subject for which there is wide demand and support.

I would also propose that we add a goal to address #84 (built in use of caching) in v2, as this will likely significantly improve workflow execution times and reduce bandwidth requirements.

Another (seemingly minor, but affects expected output) item I’d propose to see addressed in v2 is #92

@maxim-lobanov
Copy link
Contributor

maxim-lobanov commented Mar 15, 2021

Hello!
V2-preview is available with support of Adopt OpenJDK. We would be appreciate for any testing before v2 stable release:

- name: setup-java
  uses: actions/setup-java@v2-preview
  with:
    distribution: 'adopt'
    java-version: '11'

README for v2-preview: https://github.com/actions/setup-java/tree/v2-preview

@brunoborges
Copy link

@maxim-lobanov should Setup Java really continue to have the support for managing Maven's settings.xml ? Shouldn't that be done by a Maven-specific Action?

I feel this is an overeach of functionality.

@msgilligan
Copy link

The v2-preview README doesn't document that outputs.path and outputs.version are set. This would be very helpful.

@maxim-lobanov
Copy link
Contributor

Thank you for pointing on it. Actually, v2-preview sets path, version and distribution properties: https://github.com/actions/setup-java/blob/v2-preview/src/distributions/base-installer.ts#L125 . I think we need to document it.

@davidkarlsen
Copy link

how is it coming along? It's now 8 months since the ADR was created..

@dmitry-shibanov
Copy link
Contributor

Hello @davidkarlsen. We released setup-java@v2-preview two weeks ago. We're planing to release stable setup-java@v2 next week. But If you want to try current logic for v2 you can use actions/setup-java@v2-preview.
#98 (comment)

@konradpabjan
Copy link
Collaborator Author

Docs and starter workflows have been updated! Closing out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants