replace deprecated `depends_on :java`
replace deprecated `depends_on :java`

recent versions of Homebrew are generating this warning:

```
Warning: eaf4481825cb35cf190faa58e5bfdff2de2a73a8@8" or "depends_on "openjdk" instead.
Please report this issue to the spotify/public tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/spotify/homebrew-public/helios.rb:9
```
spotify/homebrew-public