homebrew-core/Formula/gradle.rb
2019-04-16 10:12:56 +02:00

20 lines
626 B
Ruby

class Gradle < Formula
desc "Open-source build automation tool based on the Groovy and Kotlin DSL"
homepage "https://www.gradle.org/"
url "https://services.gradle.org/distributions/gradle-5.4-all.zip"
sha256 "f177768e7a032727e4338c8fd047f8f263e5bd283f67a7766c1ba4182c8455a6"
bottle :unneeded
depends_on :java => "1.8+"
def install
rm_f Dir["bin/*.bat"]
libexec.install %w[bin docs lib media samples src]
(bin/"gradle").write_env_script libexec/"bin/gradle", Language::Java.overridable_java_home_env
end
test do
assert_match version.to_s, shell_output("#{bin}/gradle --version")
end
end