Skip to content

Tracking: V2 setup-java #98

Closed
Closed

Description

@konradpabjan

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

Activity

  1. self-assigned this
    on Aug 24, 2020
  2. pinned this issue on Aug 24, 2020
  3. giltene commented on Aug 26, 2020

    @giltene
    Contributor

    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

  4. maxim-lobanov commented on Mar 15, 2021

    @maxim-lobanov
    Contributor

    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

  5. brunoborges commented on Mar 17, 2021

    @brunoborges
    Contributor

    @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.

  6. msgilligan commented on Mar 22, 2021

    @msgilligan

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

  7. maxim-lobanov commented on Mar 22, 2021

    @maxim-lobanov
    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.

  8. davidkarlsen commented on Mar 30, 2021

    @davidkarlsen

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

  9. dmitry-shibanov commented on Mar 30, 2021

    @dmitry-shibanov
    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)

  10. konradpabjan commented on Apr 5, 2021

    @konradpabjan
    ContributorAuthor

    Docs and starter workflows have been updated! Closing out

  11. unpinned this issue on Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions