Last active
January 10, 2017 13:28
-
-
Save inthecloud247/fa6b9aae5dd517e00e4ffaf49afa4aa4 to your computer and use it in GitHub Desktop.
homebrew-compatible gradle213 install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Gradle < Formula | |
desc "Build system based on the Groovy language" | |
homepage "https://www.gradle.org/" | |
url "https://downloads.gradle.org/distributions/gradle-2.13-bin.zip" | |
sha256 "0f665ec6a5a67865faf7ba0d825afb19c26705ea0597cec80dd191b0f2cbb664" | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment