Skip to content

Instantly share code, notes, and snippets.

@inthecloud247
Last active January 10, 2017 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inthecloud247/fa6b9aae5dd517e00e4ffaf49afa4aa4 to your computer and use it in GitHub Desktop.
Save inthecloud247/fa6b9aae5dd517e00e4ffaf49afa4aa4 to your computer and use it in GitHub Desktop.
homebrew-compatible gradle213 install
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