Last active
January 24, 2017 23:38
-
-
Save inthecloud247/9060a08dbf0665a944c7c59c7c05e972 to your computer and use it in GitHub Desktop.
This file contains 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 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