homebrew-core/Formula/groovysdk.rb
Rui Chen 5b7e4b07dd groovysdk 2.5.7
Closes #39704.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-05-12 16:17:42 +02:00

29 lines
900 B
Ruby

class Groovysdk < Formula
desc "SDK for Groovy: a Java-based scripting language"
homepage "http://www.groovy-lang.org"
url "https://dl.bintray.com/groovy/maven/apache-groovy-sdk-2.5.7.zip"
sha256 "ea0daedf95f09ee7ff65303fd6e373c6502b2936e7616064c8abf9f74e1226b5"
bottle :unneeded
# Groovy 2.5 requires JDK8+ to build and JDK7 is the minimum version of the JRE that we support.
depends_on :java => "1.7+"
conflicts_with "groovy", :because => "both install the same binaries"
def install
ENV["GROOVY_HOME"] = libexec
# We don't need Windows' files.
rm_f Dir["bin/*.bat"]
prefix.install_metafiles
bin.install Dir["bin/*"]
libexec.install "conf", "lib", "src", "doc"
bin.env_script_all_files(libexec+"bin", :GROOVY_HOME => ENV["GROOVY_HOME"])
end
test do
system "#{bin}/grape", "install", "org.activiti", "activiti-engine", "5.16.4"
end
end