gradle@2.14: require Java 8 specifically and make keg_only (#30805)

This commit is contained in:
commitay 2018-08-06 16:37:49 +10:00 committed by ilovezfs
parent 238c4a754c
commit d605710076

View file

@ -6,9 +6,13 @@ class GradleAT214 < Formula
bottle :unneeded
keg_only :versioned_formula
depends_on :java => "1.8"
def install
libexec.install %w[bin lib]
bin.install_symlink libexec+"bin/gradle"
(bin/"gradle").write_env_script libexec/"bin/gradle", Language::Java.java_home_env("1.8")
end
test do