Description
Verification
- This issue's title and/or description do not reference a single formula e.g.
brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.
Provide a detailed description of the proposed feature
Many Homebrew packages (eg, Maven) that depend on Java have a hardwired dependency on the Brew OpenJDK. Usually, I prefer Temurin, and more flavours of JDKs are available from Brew that could run the packages at issue without problems.
As in other package managers (eg, apt), I'd like to have an option to tell which JDK I want in those cases. I already use --ignore-dependencies
, but that's not the same thing, since the unwanted OpenJDK is installed as soon as I forget to use that flag.
Obviously, this applies to similar situations where a package depends on some general framework/server/etc (eg, many web applications that force Apache, when I actually use NGINX, or if you like, vice versa).
What is the motivation for the feature?
More flexibility with managing dependencies that can be fulfilled by multiple alternative packages.
How will the feature be relevant to at least 90% of Homebrew users?
More than 90% of users have their preferences, and one-fit-all solutions are very rare.
What alternatives to the feature have been considered?
--ignore-dependencies
, but it's not as good as what I'm proposing.