Add OpenJDK distribution - #1147
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Add the OpenJDK JDK reference implementation
Add OpenJDK distribution
Jul 28, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2c93ae0c-bbf5-40f5-bf6e-40168d0e267f
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2c93ae0c-bbf5-40f5-bf6e-40168d0e267f
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2c93ae0c-bbf5-40f5-bf6e-40168d0e267f
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2c93ae0c-bbf5-40f5-bf6e-40168d0e267f
brunoborges
marked this pull request as ready for review
July 28, 2026 19:54
Contributor
There was a problem hiding this comment.
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
OpenJdkDistributioninstaller that scrapesjdk.java.netto resolve and download matching JDK archives (GA/EA/archive), supporting SemVer ranges and legacy archive layouts. - Registers
oracle-openjdkin 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
Comment on lines
+109
to
+112
| private async fetchPage(url: string): Promise<string> { | ||
| const response = await this.http.get(url); | ||
| return response.readBody(); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description:
Adds
distribution: oracle-openjdkfor the GPLv2+CE OpenJDK builds created and hosted by Oracle at jdk.java.net.jdk.java.net.Stable release:
Early-access release:
Using
27without the-easuffix 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: