requirements: add JavaDependency.
requirements: add JavaDependency.

Requested in Homebrew/homebrew-science#1039.
Closes Homebrew/homebrew#30852.

hanxue/linuxbrew,Linuxbrew/brew,pseudocody/brew,claui/brew,MikeMcQuaid/brew,AnastasiaSulyagina/brew,claui/brew,sjackman/homebrew,mahori/brew,mahori/brew,jmsundar/brew,nandub/brew,mahori/brew,vitorgalvao/brew,AnastasiaSulyagina/brew,staticfloat/brew,ilovezfs/brew,alyssais/brew,tonyg/homebrew,sjackman/homebrew,reitermarkus/brew,rwhogg/brew,Homebrew/brew,konqui/brew,gordonmcshane/homebrew,mistydemeo/homebrew,gordonmcshane/homebrew,gregory-nisbet/brew,reelsense/brew,zmwangx/brew,aw1621107/brew,muellermartin/dist,pseudocody/brew,aw1621107/brew,jmsundar/brew,reelsense/brew,claui/brew,EricFromCanada/brew,EricFromCanada/brew,gordonmcshane/homebrew,DomT4/brew,palxex/brew,sjackman/homebrew,mistydemeo/homebrew,tonyg/homebrew,pseudocody/brew,DomT4/brew,mgrimes/brew,mgrimes/brew,JCount/brew,staticfloat/brew,reitermarkus/brew,staticfloat/brew,maxim-belkin/brew,DomT4/brew,Homebrew/brew,hanxue/linuxbrew,amar-laksh/brew_sudo,reelsense/brew,vitorgalvao/brew,maxim-belkin/brew,JCount/brew,toonetown/homebrew,konqui/brew,mistydemeo/homebrew,AnastasiaSulyagina/brew,rwhogg/brew,nandub/brew,konqui/brew,palxex/brew,reitermarkus/brew,nandub/brew,reitermarkus/brew,tonyg/homebrew,Linuxbrew/brew,MikeMcQuaid/brew,rwhogg/brew,alyssais/brew,JCount/brew,zmwangx/brew,DomT4/brew,ilovezfs/brew,Homebrew/brew,JCount/brew,alyssais/brew,bfontaine/brew,mahori/brew,toonetown/homebrew,muellermartin/dist,MikeMcQuaid/brew,muellermartin/dist,aw1621107/brew,Homebrew/brew,maxim-belkin/brew,MikeMcQuaid/brew,bfontaine/brew,palxex/brew,bfontaine/brew,gregory-nisbet/brew,gregory-nisbet/brew,Linuxbrew/brew,toonetown/homebrew,ilovezfs/brew,konqui/brew,claui/brew,amar-laksh/brew_sudo,sjackman/homebrew,vitorgalvao/brew,vitorgalvao/brew,Linuxbrew/brew,nandub/brew,amar-laksh/brew_sudo,EricFromCanada/brew,mgrimes/brew,hanxue/linuxbrew,EricFromCanada/brew,zmwangx/brew,jmsundar/brew