8000 groovy: use Language::Java.overridable_java_home_env · ArduinoBot/homebrew-core@18d0175 · GitHub
[go: up one dir, main page]

Skip to content

Commit 18d0175

Browse files
alebcayBrewTestBot
authored andcommitted
groovy: use Language::Java.overridable_java_home_env
1 parent b00803c commit 18d0175

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Formula/groovy.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ class Groovy < Formula
33
homepage "https://www.groovy-lang.org/"
44
url "https://dl.bintray.com/groovy/maven/apache-groovy-binary-3.0.5.zip"
55
sha256 "f7ffaed8aa63611bf68bef0db512ab979926c6e8778393fe573c553b9bd39e10"
6+
license "Apache-2.0"
67

78
bottle :unneeded
89

@@ -16,7 +17,7 @@ def install
1617

1718
libexec.install "bin", "conf", "lib"
1819
bin.install Dir["#{libexec}/bin/*"] - ["#{libexec}/bin/groovy.ico"]
19-
bin.env_script_all_files libexec/"bin", JAVA_HOME: "${JAVA_HOME:-#{Formula["openjdk"].opt_prefix}}"
20+
bin.env_script_all_files libexec/"bin", Language::Java.overridable_java_home_env
2021
end
2122

2223
def caveats

0 commit comments

Comments
 (0)
0