Update setup-java for Microsoft's Build of OpenJDK: now pointing task to CDN that is always up-to-date - #1236
Open
jmjaffe37 wants to merge 5 commits into
Open
Update setup-java for Microsoft's Build of OpenJDK: now pointing task to CDN that is always up-to-date#1236jmjaffe37 wants to merge 5 commits into
jmjaffe37 wants to merge 5 commits into
Conversation
Contributor
Author
|
@brunoborges let me know if you have any questions :) |
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Microsoft Build of OpenJDK distribution logic in setup-java to fetch the available-versions manifest from a Microsoft-hosted, always-up-to-date CDN endpoint instead of reading a JSON file from the GitHub repository.
Changes:
- Switched
MicrosoftDistributions.getAvailableVersions()to fetchmicrosoft-openjdk-versions.jsonviahttps://aka.ms/download-jdk/.... - Updated the built
distbundles to reflect the new endpoint (including new emitted chunk files).
Reviewed changes
Copilot reviewed 1 out of 6 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/distributions/microsoft/installer.ts | Points the Microsoft versions manifest lookup to the aka.ms CDN URL. |
| dist/setup/220.index.js | Compiled output reflecting the new Microsoft versions manifest URL. |
| dist/setup/758.index.js | New compiled chunk emitted in the setup build output. |
| dist/cleanup/758.index.js | New compiled chunk emitted in the cleanup build output. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
jmjaffe37
commented
Aug 12, 2026
| @@ -8,7 +8,6 @@ import { | |||
| cacheJdkDir, | |||
Contributor
Author
There was a problem hiding this comment.
Note: this is the only file where I made any changes. The rest of the files were changed automatically by the npm build tools
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:
Now pointing Microsoft's getAvailableVersions() to CDN that is always up-to-date
Related issue:
Add link to the related issue.
Check list:
npm run checklocally (format, lint, build, test) and all checks pass.