Skip to content

Instantly share code, notes, and snippets.

@inthecloud247
Last active January 24, 2017 23:38
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/9060a08dbf0665a944c7c59c7c05e972 to your computer and use it in GitHub Desktop.
Save inthecloud247/9060a08dbf0665a944c7c59c7c05e972 to your computer and use it in GitHub Desktop.
class Gradle28 < Formula
desc "Build system based on the Groovy language"
homepage "https://www.gradle.org/"
url "https://downloads.gradle.org/distributions/gradle-2.8-bin.zip"
sha256 "a88db9c2f104defdaa8011c58cf6cda6c114298ae3695ecfb8beb30da3a903cb"
bottle :unneeded
conflicts_with "gradle", :because => "Differing version of same formula"
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