-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Endorse AdoptOpenJDK instead of Oracle OpenJDK #6040
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This commit changes the message that appears when Homebrew detects that a Java requirement is unmet. The new message will say: ``` Install AdoptOpenJDK with Homebrew Cask: brew cask install adoptopenjdk ``` And for Java 8: ``` Install AdoptOpenJDK 8 with Homebrew Cask: brew cask install homebrew/cask-versions/adoptopenjdk8 ```
|
Holding merge until CI nodes have been switched to AdoptOpenJDK. |
|
I support this but one thing on my mind is CI automation that installs a formula that would previously install the I'm not sure what we can do about that other than to let user diagnosis of broken automation inform the next steps, aside from some kind of announcement, but seeing as there's no transition period – it just is the way it is now – I'm not sure of the value of that. Maybe this is me shaking my fist at Oracle for doing this kinda suddenly? |
|
What about HBC? Presumably we’ll have to change our
|
@vitorgalvao Very good catch! You’re right, and I missed them in the code. Yes, I need to change it there, too.
Apart from the
You mean, add them as casks (to
Like above, I’m going to follow up in Homebrew/homebrew-cask#57387. |
@colindean Yes, either that, or maybe pre-install it on the nodes.
Yea, I’d also rather have spent Good Friday outside instead of dealing with a corporate behemoth’s whimsical episodes. Any vendor, even AdoptOpenJDK, can throw up a registration wall on a whim and with zero advance notice. I can live with that for now but I’m also open for suggestions. |
|
As a Java developer, big 👍 on this. Many of your Homebrew users might be at work or school or in other contexts that don't count as "personal or non-production use", which is the only free use allowed by the new Oracle JDK licensing. Suggesting a newer Oracle JDK without giving a big ol' license warning could lead to users accidentally putting them in a situation where they've accidentally exposed themselves to Oracle licensing costs or audits; many Homebrew users will have no idea about the new Oracle JDK licensing situation. Plus I think it's best if you suggest users run the exact same JDK that you're running on the CI servers. And, as a Java developer and advocate, I think it'd be great if the entire Java-using community moved towards thinking of AdoptOpenJDK as the default, "obvious" choice for a JDK. This would be a nice step in that direction. |
@colindean I don't understand why you've reached than conclusion considering this is just changing a text string specifying our recommendation.
I don't see any requirement from the Homebrew side to do that but have no arguments for or against it.
I think so.
My $0.02 would be that we eventually consider renaming the
Strongly agree. There's also an argument here for (I think?) us all broadly being advocates of open source and if we can nudge people from a closed-source solution to a drop-in open source replacement that feels like a win. |
I misunderstood. I thought this was effectively making it so that a formula that depended on |
A formula that depends on Java does not install it automatically. |
|
As I have just realized!
|
|
Thanks for all your work on this @claui! The CI machines have been updated to use |
|
Can we now investigate moving the AdopOpenJDK tap into the home brew project otherwise we now have duplicates? |
|
cc @iMichka |
@gdams Whoever controls the tap would need to indicate that it has been migrated to homebrew/homebrew-cask, I believe. |
|
Hopefully adoptopenjdk11 will make it's way to cask-versions as well, as this is the new LTS version. |
brew stylewith your changes locally?brew testswith your changes locally? There were several errors but unrelated to the PR at hand.Homebrew picks up any Java it finds on the user’s system. That’s a good thing; users should remain free to install any Java they see fit.
This PR changes the message that appears when Homebrew detects that a Java requirement is unmet.
The new message will say:
And for Java 8:
Note that Homebrew’s build servers will now use AdoptOpenJDK to test formulas that depend on Java.
This PR supersedes #6035; see that for more details.
Fixes Homebrew/homebrew-core#39037