homebrew-core/Formula/gradle.rb
Kenzie Togami 74edf37542 gradle 3.3
Closes #8458.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
2017-01-04 14:56:21 +01:00

23 lines
675 B
Ruby

class Gradle < Formula
desc "Build system based on the Groovy language"
homepage "https://www.gradle.org/"
url "https://downloads.gradle.org/distributions/gradle-3.3-all.zip"
sha256 "71a787faed83c4ef21e8464cc8452b941b5fcd575043aa29d39d15d879be89f7"
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