Example of Homebrew Requirement (Java 8/11 for Kafka)


(Nick ) #1

Could anyone point out a good example of using a Homebrew Requirement for a Formula?

Kafka 2.1, the latest release on Homebrew, now supports Java 11 (which I have), whereas the formula requires Java 8, which I do not have.


(Jonathan Chang) #2

brew info kafka says:

==> Requirements
Required: java = 1.8 (installed)

You can change this to requires java >= 1.8 if you update the kafka formula to say depends_on :java => "1.8+". Test this change on your own machine and if it works then please open a pull request to get it included in Homebrew.