Solvedhomebrew cask What to do regarding java development casks

Refs #57374 (comment). Ping @Homebrew/cask.

I feel like the multitude of Java/JVM/JDK casks is too much. Even which software to call java is a contentious subject that pops up once in a while. Those casks need non-trivial amounts of spaghetti code (i.e. non-standard-cask-code), there are a bunch of them, all have slightly different reasons for existing, and more than once we’ve had to rethink how they’re organised. We’ve tried to make sense of them yet again recently, but the person doing most of the work in that regard has since left.

Our options, as I see them:

  1. Continue adding these as they’re submitted, increasing the mess, eventually having to remove a bunch of them because nobody can make heads or tails of it anymore, or just leave them hanging and broken, as has happened in the past.
  2. Have someone (preferably a core maintainer, but not mandatory) commit to understanding all of these different softwares, why they exist, decide which should be included or not, and keep them in good shape. This person will be made a code owner to deal with all of these. To improve the lottery factor, this person should also keep a document that keeps track of all these different casks, why they exist, and why they need the extra code to be made functional (particularly useful in cases where they differ, if any).
  3. Keep the java cask and move everything else to yet another tap.
  4. Keep the java cask and delete everything else. If everyone else needs them, let them make their own tap.

My takes on these suggestions: 1 looks like a recipe for failure and burnout. Both 3 and 4 might restore order, but I’d prefer if that decision would be made by someone with the knowledge described in 2. 4 will piss off more people, and 3 won’t really ease our burden, just shift it. I’ll definitely not be the person to tackle 2. I dislike java and the stress java casks have given HBC repos in the past and that would make impartiality in my handling of it difficult. However, I would likely help that person tightening the documentation.

Naturally, any other solutions are welcome, or even opinions if you think this isn’t an issue. Right now, I feel this is a problem, even if an unconscious one. Casks with spaghetti code tend to be left longer without being fixed, java being no exception.

18 Answers

✔️Accepted Answer

Edit 2: added link to AdoptOpenJDK migration guide; December 2020 deadline for Oracle JDK 8 availability; proposal for adding java as a homebrew-core formula.

Edit: added link to Java Champions article.


Don’t mind me – just collecting a few random factoids to help clear my mind on the subject.

  • As of April 2019, 185 formulas on homebrew-core depend on :java => something.

  • 40% of those are pinned to 1.8. The others have no upper version bound.

  • The Java 8 → 9 version bump caused significant migration effort when additional formulas had to be pinned which had no upper version bound before.

  • Losing @ilovezfs as a maintainer didn’t exactly help; see the 9 → 10 transition.

  • Other Java major version bumps, such as 11 → 12, caused much less work.

  • There should be at least one public, free, long-term supported Java on homebrew-cask at any given moment to satisfy the > 70 core formulas that depend on a pinned Java.

  • Java 1.8 is well past its shelf life; we can’t count on Oracle to provide a replacement.

  • After December 2020, Oracle JDK 8 may no longer be publicly available. Until then, we’re going to have to decide on what to do with the 70-ish formulas on homebrew-core which still depend on Java 8. Each of those formulas needs to be either assessed and migrated (e. g. to a current Oracle OpenJDK or to AdoptOpenJDK 8) or removed by the end of 2020. According to AdoptOpenJDK’s release roadmap, AdoptOpenJDK is committed to releasing public OpenJDK 8 builds until at least September 2023.

  • Organizing all Java casks into a separate tap has been considered but it was discovered that it really wouldn’t help much.

  • Thanks to @reitermarkus’s work, individual Java casks impose a lower maintenance tax than they used to. Looks like they scale much better now.

  • Being all too exclusionist can be controversial. I don’t fear conflict but ideally, I’d love for the Homebrew org to be on good terms with other key orgs, such as AdoptOpenJDK.

  • More and more apps tend to vendor their own Java. That won’t help with homebrew-core though, unless we can build that JDK from some OSI-compatible source.

  • My design principle for naming Java casks: Don’t memorize stuff, and don’t design anything that requires others to memorize stuff.

  • One early attempt of mine to document and categorize Java casks: #54074 (comment) (don’t try this at home.)

  • I’d love to become the person to tend to our Java cask garden. (That would be option 2 on the @vitorgalvao scale). But I feel that’s only going to work if I document and automate most of that work in the long run.

  • The folks at Java Champions have compiled an overview on Oracle’s recent Java shenanigans.

  • AdoptOpenJDK has an article on Oracle JDK → AdoptOpenJDK migration and compatibility.

  • Have we ever considered creating java@8, java@11, and java formulas/bottles on homebrew-core? The OpenJDK sources are public, and AdoptOpenJDK has a well-documented build system. That would require clarification whether OpenJDK’s license, which seems to be slightly more permissive than pure GPL 2.0, is deemed GPL 2.0-compatible (which would make it OSI-approved and fit for use on homebrew-core).

Other Answers:

This issue has already cropped up in #53976.

I've so far removed myself from this sort of discussion, but I feel this is the time to speak up.

  1. Keep the java cask and delete everything else. If everyone else needs them, let them make their own tap.
    4 will piss off more people,

This is not a matter of how many people will be pissed by our decision (or not), it's a matter of how much will the assigned person last before burning out. When I installed Homebrew (and Cask), I did it because of manageability, and this should also apply to the maintainers.

My vote goes with 4: maintain only official and supported versions of Java. Let's be clear that everyone else should host their own taps.

I’d love to become the person to tend to our Java cask garden. (That would be option 2 on the @vitorgalvao scale). But I feel that’s only going to work if I document and automate most of that work in the long run.

Beautiful. Option 2 already predicted such a documentation effort, so that you also see it as pivotal is a good sign it’s an idea with legs.

From my side, I give you carte blanche to proceed however you find best. I reinforce my commitment from the top post of helping you tighten the spots you need.

Related Issues:

19
homebrew cask What to do regarding java development casks
Edit 2: added link to AdoptOpenJDK migration guide; December 2020 deadline for Oracle JDK 8 availabi...
15
homebrew cask VirtualBox Cask 6.0.8 Broken and Partial Fails Installation
BTW For those having this problem and need an immediate resolution Boot into Recovery with Command-R...
14
homebrew cask Bug report: Problem uninstalling the wireshark cask
@vitorgalvao same issue reported in @alireza's last comment Digging a bit further: this complete seq...
14
homebrew cask brew cask zap command failed and the output is weird
I've experienced it too And it is not the first time that Software Update messed my CLT installation...
3831
axios Axios catch error returns javascript error not server response
I have exactly the same environment Try this: Modify from console.log(error) to console.log(error.re...
731
scrapy ' error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 '
@euler16 for scrapy with Python 3 you'll need with Python 2 you'll need I wanted to install scrapy i...
684
laradock Mysql. The server requested authentication method unknown to the client [caching_sha2_password]
alter user 'username'@'localhost' identified with mysql_native_password by 'password'; would fix it....
517
react navigation screenIsActive prop / componentDidFocus event for TabNavigator items
It probably makes sense to add lifecycle hooks to screens In one of my Tabs i need to load Data from...
474
meteor [1.4.2.1] Error: ENFILE: file table overflow
I was getting the same after an upgrade to macOS Sierra Turns out macOS have a harsh limit on number...
423
ipython Last jedi release (0.18.0) is incompatible with ipython (7.19 and 7.18 tested); reason - column arg was deprecated, and now removed
As a temporary fix for anyone just trying to get things working again: It would be really nice if yo...
397
material ui Module not found: Can't resolve 'material-ui-icons/Menu' Martial Next
For anyone else experiencing this issue: npm install @material-ui/icons https://www.npmjs.com/packag...
395
laravel dompdf (1/1) ErrorException Non-static method Barryvdh\DomPDF\PDF::loadView() should not be called statically
This happens because you are namespacing the wrong PDF class You are namespacing Barryvdh\DomPDF\PDF...
378
webpacker localIdentName option moved in css-loader configuration
I faced same issue after upading css-loader but I solved it If you check css-loader readme ...
364
react navigation Send data back from child screen?
@itswaze You can do something along these lines to pass back from the child screen ...
358
react navigation How to goBack from nested StackNavigator?
@dhruvparmar372 According to the NOTE in the doc a navigator's navigation prop may not have the help...
352
axios POST request works in Browser but not on Node
This might be considered a duplicate of #789 I was able to use the form-data package with Axios in n...
317
react navigation Best pattern for a 'Save' button in the header
Try setting your component instance's handleSave function as a navigation state parameter after the ...
310
DefinitelyTyped [@types/react] RefObject.current should no longer be readonly
It's not It'a intentionally left readonly to ensure correct usage even if it's not frozen ...
306
react native navigation [V3][Android] FATAL EXCEPTION: create_react_context
OK after a good night of sleep I've found why I was having this issue In the MainApplication.java I ...
303
ts node Custom typings not working with ts-node 8.0.2
When using with ts-node you have to add --files flag After updating to ts-node version 8.0.2 the cus...
294
ohmyzsh compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew
Per #9602 (comment) brew cleanup fixed it for me I am using Apple M1 When I added this line: export ...
292
laradock SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
+1 I'm having the same problem here. Info: Docker version ($ docker --version): Docker version 17.12...
289
vagrant vagrant box update - Fails with 404 Not Found error
A workarround to add in your Vagrantfile: Vagrant version Host operating system Ubuntu 16.04.3 LTS G...
263
vagrant vagrant --help displays a rubygems error
To fix this error: Vagrant version Host operating system Expected behavior vagrant and vagrant --hel...
262
date fns Can't resolve 'date-fns/_lib/format/longFormatters'
You probably forgot to install date-fns or Code: import DateFnsUtils from '@date-io/date-fns'; ...
259
virtualenv Error creating virtualenv with python3.6
The original poster's problem is due to not having the 'python3.6-venv' package installed ...
252
provider A Product was used after being disposed. flutter: Once you have called dispose() on a Product, it can no longer be used.
Oh I see what you're doing Don't: DO: i have a ChangeNotifireProvider that such that i do pushReplac...
248
react navigation Reset to nested route, "There is no route defined for..."
A quick workaround (not heavily tested): set the key property to null on your action. ...
238
axios Adding headers to axios.post method
Edit: I had to add Authorization to allowed headers in my CORS filter @jffernandez I'm having the sa...
231
axios Adding Retry Parameter
@mericsson I am too in need of exponential backoff when retrying I've put together the following whi...
224
homebrew openjdk Cask adoptopenjdk8 exists in multiple taps
I think AdoptOpenJDK8 should be removed from the homebrew-cask-versions repo Somone(TM) should proba...
222
nativescript cli TNS doctor doesn't recognize Xcode (High Sierra)
HI @philipfeldmann Can yhou please run xcodebuild -version and paste the output? May be Xcode is ins...
215
axios BaseURL not being used
Please IGNORE THIS ISSUE Found the problem: I was setting baseUrl but it should be baseURL. ...
205
axios How to ignore SSL issues
You can configure axios to use a custom agent and set rejectUnauthorized to false for that agent: Ho...
202
ipython NameError: name 'sys' is not defined
Ok that was easy The Jedi release on 12/25 version 0.18.0 is breaking tab completion pip install --u...
190
axios How to send Raw http for Instagram Authentication?
Yes StringClient uses the application/x-www-form-urlencoded format by default while axios uses appli...
186
vuetify [Bug Report] Could not find a declaration file for module 'vuetify/lib'
@KaelWD Thank you for the link More specifically this comment helped me out to properly update my ts...
182
axios CORS error No 'Access-Control-Allow-Origin' header is present on the requested resource
My solution is axios.get('https://cors-anywhere.herokuapp.com/' + yourUrl) update: doesn't work ...
181
runtime An assembly specified in the application dependencies manifest (RhWeb.deps.json) was not found
I also hit this For me it had to do with the use of in my .csproj when running in an environment tha...
179
react navigation Drawer changes in #1803 causes undocumented breaking changes to drawernavigators
Adding to the drawer configs fixed the issue for me. Current Behavior create a single drawer navigat...
178
laradock MySQL Container fails to start
I had the same issue last night I think it's the mysql version problem What I did was edited laradoc...
177
webpacker Compilation Failed without error message
In case anyone else runs into this I had to set webpack_compile_output: true in webpacker.yml for ra...
175
matplotlib 'NSWindow drag regions should only be invalidated on the Main Thread!' - macos/python
If you are running a webserver and using it to save Matplotlib make sure to set the backend to a non...
174
axios request progress?
@slim12kg Depending on the way you coded your project it may change if my code confuses you ...
174
ruby build Cannot install Ruby versions < 2.4 because of openssl@1.1 dependency
@jyr There are multiple things wrong with what you are doing First of all you are using rvm ...
169
NativeBase Needs to tap twice to fire onPress function when keyboard is open
@bm-software Use keyboardShouldPersistTaps={'handled'} and will works fine. react-native ...
167
react navigation Android header is overlapped
Yes @rockingskier I had a chat with the Expo guys Looks like we need to explicitly add padding for A...
165
DefinitelyTyped node_modules/@types/react-native/globals.d.ts (36,15): Duplicate identifier 'FormData'.
Fixed by set compilerOptions.types manually If you know how to fix the issue make a pull request ins...
163
ts node ts-node fails when ES Modules are in the dependency graph in Node.js 13+
It seems that ts-node fails to run with module: esnext in the tsconfig.json and type: module in the ...