homebrew-core/Formula/gradle.rb
Svyatoslav Chatchenko a138a8c76d gradle 4.7 (#26798)
2018-04-19 00:13:10 -07:00

23 lines
735 B
Ruby

class Gradle < Formula
desc "Build system based on the Groovy language"
homepage "https://www.gradle.org/"
url "https://services.gradle.org/distributions/gradle-4.7-all.zip"
sha256 "203f4537da8b8075e38c036a6d14cb71b1149de5bf0a8f6db32ac2833a1d1294"
bottle :unneeded
option "with-all", "Installs Javadoc, examples, and source in addition to the binaries"
depends_on :java => "1.7+"
def install
rm_f Dir["bin/*.bat"]
libexec.install %w[bin lib]
libexec.install %w[docs media samples src] if build.with? "all"
(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