d8237f7dee
Closes #10622. Signed-off-by: JCount <JCount42@gmail.com>
23 lines
677 B
Ruby
23 lines
677 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.4.1-all.zip"
|
|
sha256 "ed7e9c8bb41bd10d4c9339c95b2f8b122f5bf13188bd90504a26e0f00b123b0d"
|
|
|
|
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
|