What happens if depends_on_java does not match? #3145
-
I want to provide my app (a CLI) as a binary via homebrew and it depends on openjdk 8 (it won't work yet with another version)
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Is it open source? |
Beta Was this translation helpful? Give feedback.
-
Since you provide a jar this should work fine for a formula. It will need to be hosted in an external tap, however, since we accept only open source software in homebrew-core. |
Beta Was this translation helpful? Give feedback.
depends_on_java
only works for casks. For formulae you can dodepends_on "openjdk@8"
which is the version you need. You can also configure your formula so that it uses theopenjdk@8
dependency and not any other JDK.Since you provide a jar this should work fine for a formula. It will need to be hosted in an external tap, however, since we accept only open source software in homebrew-core.