homebrew-core/Formula/gradle.rb
Said Tahsin Dane 111fb3f6cf gradle 5.2
Closes #36708.

Signed-off-by: Jan Viljanen <527069+javian@users.noreply.github.com>
2019-02-04 23:48:48 +01: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.2-all.zip"
sha256 "55db797adf2705bb782655f012af7cc7724b14382881f60fb3f3eb4b645c02d6"
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