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.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Copilot
AI
changed the title
[WIP] Add the OpenJDK JDK reference implementation
Add OpenJDK distribution
Jul 28, 2026
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 2c93ae0c-bbf5-40f5-bf6e-40168d0e267f
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 2c93ae0c-bbf5-40f5-bf6e-40168d0e267f
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 2c93ae0c-bbf5-40f5-bf6e-40168d0e267f
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 2c93ae0c-bbf5-40f5-bf6e-40168d0e267f
Uh oh!
There was an error while loading. Please reload this page.
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
- 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.
Comment on lines
+109
to
+112
|
|
private async fetchPage(url: string): Promise<string> {
|
|
|
const response = await this.http.get(url);
|
|
|
return response.readBody();
|
|
|
}
|
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
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.
|