homebrew-core/Formula/gradle.rb
2017-06-15 00:37:18 -07:00

23 lines
674 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-all.zip"
sha256 "a0af75d3d35799a90f56255a24de69c53cd9aea90f0b532586c8f818668e1734"
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