Skip to content

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
actions:mainfrom
jmjaffe37:jmj/final_microsoft
Open

Update setup-java for Microsoft's Build of OpenJDK: now pointing task to CDN that is always up-to-date#1236
jmjaffe37 wants to merge 5 commits into
actions:mainfrom
jmjaffe37:jmj/final_microsoft

Conversation

@jmjaffe37

@jmjaffe37 jmjaffe37 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Description:
Now pointing Microsoft's getAvailableVersions() to CDN that is always up-to-date

Related issue:
Add link to the related issue.

Check list:

  • Ran npm run check locally (format, lint, build, test) and all checks pass.
  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@jmjaffe37
jmjaffe37 requested a review from a team as a code owner August 12, 2026 22:45
Copilot AI lite review requested due to automatic review settings August 12, 2026 22:45
@jmjaffe37

Copy link
Copy Markdown
Contributor Author

@brunoborges let me know if you have any questions :)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 fetch microsoft-openjdk-versions.json via https://aka.ms/download-jdk/....
  • Updated the built dist bundles 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.

Comment thread src/distributions/microsoft/installer.ts Outdated
jmjaffe37 and others added 3 commits August 12, 2026 15:49
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@@ -8,7 +8,6 @@ import {
cacheJdkDir,

@jmjaffe37 jmjaffe37 Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this is the only file where I made any changes. The rest of the files were changed automatically by the npm build tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants