homebrew-core/Formula/gradle.rb
2017-07-08 02:12:45 -07:00

23 lines
676 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.0.1-all.zip"
sha256 "8a8005633be0ca38a206f2590445685683452a0b98a5d8ffd5b8413be09bf998"
bottle :unneeded
option "with-all", "Installs Javadoc, examples, and source in addition to the binaries"
depends_on :java => "1.7+"
def install
libexec.install %w[bin lib]
libexec.install %w[docs media samples src] if build.with? "all"
bin.install_symlink libexec/"bin/gradle"
end
test do
ENV.java_cache
assert_match version.to_s, shell_output("#{bin}/gradle --version")
end
end