GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Add microsoft distribution of the JDK. by brendandburns · Pull Request #252 · actions/setup-java Conversation
Contributor
Description: Related issue: Check list:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
brunoborges
reviewed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @brendanburns! One quick suggestion here on the name:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
dikehtaw
approved these changes
dikehtaw
reviewed
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. gh pr checkout 252
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. brendandburns:main
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Hello @brendanburns. Thank you for your pull request. Will you add logic to automatically grab all available versions ? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| | `zulu` | Zulu OpenJDK | [Link](https://www.azul.com/downloads/zulu-community/?package=jdk) | [Link](https://www.azul.com/products/zulu-and-zulu-enterprise/zulu-terms-of-use/) | | ||
| | `adopt` or `adopt-hotspot` | Adopt OpenJDK Hotspot | [Link](https://adoptopenjdk.net/) | [Link](https://adoptopenjdk.net/about.html) | | ||
| | `adopt-openj9` | Adopt OpenJDK OpenJ9 | [Link](https://adoptopenjdk.net/) | [Link](https://adoptopenjdk.net/about.html) | ||
| | `microsoft` | Microsoft Build of OpenJDK | [Link](https://www.microsoft.com/openjdk) | [Link](https://docs.microsoft.com/en-us/java/openjdk/faq) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| | `microsoft` | Microsoft Build of OpenJDK | [Link](https://www.microsoft.com/openjdk) | [Link](https://docs.microsoft.com/en-us/java/openjdk/faq) | |
| | `microsoft` | Microsoft Build of OpenJDK | [Link](https://www.microsoft.com/openjdk) | [Link](https://docs.microsoft.com/java/openjdk/faq) |
I believe docs.microsoft.com will redirect to the appropriate page for the user's language setting
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
done.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| import fs from 'fs'; | ||
| import path from 'path'; | ||
|
|
||
| const supportedPlatform = `'linux', 'macos', 'windows'`; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I don't think there's anything needed here. (Aren't all URLs case-insensitive?)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I believe the path part of a URL is usually case-sensitive: https://webmasters.stackexchange.com/questions/90339/why-are-urls-case-sensitive
It seems to work though, so no not a big deal.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks good! This workflow is failing; I'm looking into why that is (and why it doesn't report on the Conversation page in the PR) must be because of the merge conflict on that file
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Brian Cristante <[email protected]>
Co-authored-by: Brian Cristante <[email protected]>
|
Looks like there are some unresolved merge conflicts in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
brendandburns#1 should fix the CI runs. Once those are green we can merge 🚢 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@brcrista Thanks! I merged your PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| os: [macos-latest, windows-latest, ubuntu-latest] | ||
| distribution: ['temurin', 'adopt', 'adopt-openj9', 'zulu', 'liberica'] # internally 'adopt-hotspot' is the same as 'adopt' | ||
| distribution: ['temurin', 'adopt', 'adopt-openj9', 'zulu', 'liberica', 'microsoft' ] # internally 'adopt-hotspot' is the same as 'adopt' | ||
| version: ['8', '11', '16'] |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can we replace 16 with 17 here, since 17 is the latest LTS now?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Probably worth doing in a different PR since it is unrelated to adding MSFT.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Ah, yes. That'd be better indeed.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| os: [windows-latest, ubuntu-latest] | ||
| distribution: ['zulu', 'liberica'] | ||
| distribution: ['liberica', 'microsoft', 'zulu'] | ||
| version: ['11'] |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Should we move up to 17?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
As above.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Noted.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| | `adopt` or `adopt-hotspot` | Adopt OpenJDK Hotspot | [Link](https://adoptopenjdk.net/) | [Link](https://adoptopenjdk.net/about.html) | | ||
| | `adopt-openj9` | Adopt OpenJDK OpenJ9 | [Link](https://adoptopenjdk.net/) | [Link](https://adoptopenjdk.net/about.html) | | ||
| | `liberica` | Liberica JDK | [Link](https://bell-sw.com/) | [Link](https://bell-sw.com/liberica_eula/) | | ||
| | `microsoft` | Microsoft OpenJDK | [Link](https://www.microsoft.com/openjdk) | [Link](https://docs.microsoft.com/java/openjdk/faq) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Correct name is Microsoft Build of OpenJDK
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done (apologies, this got lost in my rebasing)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| distribution: ['temurin', 'adopt', 'adopt-openj9', 'zulu', 'liberica'] # internally 'adopt-hotspot' is the same as 'adopt' | ||
| distribution: ['temurin', 'adopt', 'adopt-openj9', 'zulu', 'liberica', 'microsoft' ] # internally 'adopt-hotspot' is the same as 'adopt' | ||
| version: ['8', '11', '16'] | ||
| exclude: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think we should also exclude Microsoft's version 16, as it is not an LTS release and we will no longer provide updates.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think for now, since Microsoft hosts it, we should keep it in the spirit of meeting users where they are. Many users haven't updated their CI/CD for JDK 17.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that makes sense. We are not exposing support timelines for any of the distros through the GH Action anyways, so, it is up to the end-user to check the documentation of each distro.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| 'https://aka.ms/download-jdk/microsoft-jdk-17.0.1.12.1-{{OS_TYPE}}-x64.{{ARCHIVE_TYPE}}' | ||
| ], | ||
| [ | ||
| '16.0.x', |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Given 16 is not an LTS release of MS Build of OpenJDK, I think we should not list it here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
as above, but if you feel strongly I will remove it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
No, it's fine. See previous comment.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| fullVersion: [17, 0, 1, 12, 1] | ||
| }, | ||
| { | ||
| majorVersion: 16, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
See previous comments regarding making 16 available.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
as above.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Comments addressed, please re-check. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Could you please revert the changes for package-lock.json and use these commands |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Looking at my fork, looks like there will be a couple more issues: https://github.com/brcrista/setup-java/runs/4408213781?check_suite_focus=true#step:4:7 Similar issue for Ubuntu as well. @brendanburns if you want to allow edits from maintainers on this PR then we can push fixes for these issues |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@dmitry-shibanov comments addressed. @brcrista not sure where the aarch is coming from but it seems that actions doesn't support that architecture? I have ticked the "allow edits from maintainers" box, so any fixes or pointers would be great. Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks like the Licensed workflow is failing, but that's not related to these changes https://github.com/actions/setup-java/actions/runs/1555484816
Thank you @brendanburns and @brunoborges, this is a huge help!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@brcrista thank you for your help getting this across the finish line!! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Indeed, excited to see Microsoft's OpenJDK now on the Setup Java action! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks so much @brendanburns! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I just tried using the Microsoft JDK in a GitHub Actions workflow. It did not work. My workflow uses 'setup-java@v2' and there hasn't been a release that incorporates the new Microsoft JDK code. Can somebody tag a new release of setup-java? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@sullis you can reference the commit hash as a tag |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* Add microsoft distribution of the JDK. * Fix formatting to match prettier. * Rebuild js. * Fix archive suffix for Windows. * Update src/distributions/microsoft/installer.ts Co-authored-by: Brian Cristante <[email protected]> * Update src/distributions/microsoft/installer.ts Co-authored-by: Brian Cristante <[email protected]> * Add support for the microsoft distribution. * revert lockfile changes * npm run format * fix e2e-versions.yml * eliminate duplication in version numbers * Fix test Co-authored-by: Brendan Burns <[email protected]> Co-authored-by: Brian Cristante <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.