From d60571007679664f40bc0373fcf4c82705804e47 Mon Sep 17 00:00:00 2001 From: commitay Date: Mon, 6 Aug 2018 16:37:49 +1000 Subject: [PATCH] gradle@2.14: require Java 8 specifically and make keg_only (#30805) --- Formula/gradle@2.14.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Formula/gradle@2.14.rb b/Formula/gradle@2.14.rb index 285e3f9172..80edf0eb01 100644 --- a/Formula/gradle@2.14.rb +++ b/Formula/gradle@2.14.rb @@ -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