GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add OpenJDK distribution by Copilot · Pull Request #1147 · actions/setup-java

Conversation

Copilot AI commented Jul 28, 2026 •
edited by brunoborges
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Description:
Adds distribution: oracle-openjdk for the GPLv2+CE OpenJDK builds created and hosted by Oracle at jdk.java.net.

  • Discovers current GA, early-access, and archived releases from jdk.java.net.
  • Supports SemVer ranges, exact builds, four-field versions, and legacy archive layouts.
  • Supports Linux, macOS, and Windows on x64 and AArch64.
  • Supports JDK packages; JRE and JavaFX package variants are not published by this distribution.
  • Documents that Oracle archives these builds after a limited number of releases and stops providing security updates. Users must then move to Oracle JDK or another maintained vendor to continue receiving security patches.
  • Registers the distribution, adds platform-independent tests, and updates the bundled action.

Stable release:

- uses: actions/setup-java@v6
  with:
    distribution: 'oracle-openjdk'
    java-version: '26'

Early-access release:

- uses: actions/setup-java@v6
  with:
    distribution: 'oracle-openjdk'
    java-version: '27-ea'

Using 27 without the -ea suffix selects a stable (GA) release.

Related issue:
OpenJDK JDK distribution feature request.

Download URL:
https://jdk.java.net/

License:
https://openjdk.org/legal/gplv2+ce.html

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.
  • Mark if new distribution is being added.
  • Fixes Add the OpenJDK JDK reference implementation #1141

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Initial plan
d9cbbc4
Copilot AI assigned Copilot and brunoborges Jul 28, 2026
Copilot started work on behalf of brunoborges July 28, 2026 02:03
View session
Copilot AI linked an issue Jul 28, 2026 that may be closed by this pull request
Add the OpenJDK JDK reference implementation #1141
Closed
Copilot AI added 4 commits July 28, 2026 02:11
Add OpenJDK distribution
a7c4828
Support archived OpenJDK release formats
2c4a2dd
Handle legacy OpenJDK URL layout
cb48866
Resolve legacy OpenJDK build metadata
333d9ce
Copilot AI changed the title [WIP] Add the OpenJDK JDK reference implementation Add OpenJDK distribution Jul 28, 2026
Copilot finished work on behalf of brunoborges July 28, 2026 02:52
Copilot AI requested a review from brunoborges July 28, 2026 02:52
brunoborges added 5 commits July 28, 2026 15:20
@brunoborges
Merge branch 'main' into copilot/add-openjdk-jdk-distribution
97050e9
@brunoborges
Rename OpenJDK distribution to oracle-openjdk
25b4db5
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 2c93ae0c-bbf5-40f5-bf6e-40168d0e267f
@brunoborges
Make OpenJDK tests platform independent
3f1ca98
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 2c93ae0c-bbf5-40f5-bf6e-40168d0e267f
@brunoborges
Document Oracle OpenJDK early access builds
8bad58b
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 2c93ae0c-bbf5-40f5-bf6e-40168d0e267f
@brunoborges
Clarify Oracle OpenJDK security note
c9ff0d5
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 2c93ae0c-bbf5-40f5-bf6e-40168d0e267f
@brunoborges
brunoborges marked this pull request as ready for review July 28, 2026 19:54
@brunoborges
brunoborges requested a review from a team as a code owner July 28, 2026 19:54
Copilot AI review requested due to automatic review settings July 28, 2026 19:54
Copilot started reviewing on behalf of brunoborges July 28, 2026 19:55
View session
@brunoborges
brunoborges merged commit 0b0bd25 into main Jul 28, 2026
441 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@brunoborges
brunoborges deleted the copilot/add-openjdk-jdk-distribution branch July 28, 2026 19:55
Copilot AI reviewed Jul 28, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

Pull request overview

This PR adds support for installing Oracle-hosted OpenJDK builds from https://jdk.java.net/ via a new distribution: oracle-openjdk, including GA, early-access, and archived release discovery, plus documentation and test coverage.

Changes:

  • Adds a new OpenJdkDistribution installer that scrapes jdk.java.net to resolve and download matching JDK archives (GA/EA/archive), supporting SemVer ranges and legacy archive layouts.
  • Registers oracle-openjdk in the distribution factory and updates user docs (README + advanced usage) to document behavior and security-update caveats.
  • Adds Jest tests covering GA/EA resolution, archived releases, legacy archive headings, and platform/arch handling; updates the bundled dist/setup/index.js.
Show a summary per file
File Description
src/distributions/openjdk/installer.ts Implements OpenJDK release discovery/parsing and download/caching for oracle-openjdk.
src/distributions/distribution-factory.ts Registers oracle-openjdk and wires it to OpenJdkDistribution.
README.md Adds oracle-openjdk to the supported distributions table and documents archival/security caveat.
docs/advanced-usage.md Documents how to use oracle-openjdk (including -ea) and updates guidance for manual JDK installs.
tests/distributors/openjdk-installer.test.ts Adds unit tests validating version resolution and parsing across GA/EA/archive formats.
dist/setup/index.js Updates the compiled/bundled action output to include the new distribution.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 5/6 changed files
  • Comments generated: 1
  • Review effort level: Low

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/distributions/openjdk/installer.ts
Comment on lines +109 to +112
private async fetchPage(url: string): Promise<string> {
const response = await this.http.get(url);
return response.readBody();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@brunoborges brunoborges Awaiting requested review from brunoborges

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@brunoborges brunoborges

Copilot code review Copilot

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add the OpenJDK JDK reference implementation

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@brunoborges
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.