20 lines
514 B
Ruby
20 lines
514 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-2.12-bin.zip"
|
|
sha256 "e77064981906cd0476ff1e0de3e6fef747bd18e140960f1915cca8ff6c33ab5c"
|
|
|
|
bottle :unneeded
|
|
|
|
def install
|
|
libexec.install %w[bin lib]
|
|
bin.install_symlink libexec+"bin/gradle"
|
|
end
|
|
|
|
test do
|
|
ENV.java_cache
|
|
output = shell_output("#{bin}/gradle --version")
|
|
assert_match /Gradle #{version}/, output
|
|
end
|
|
end
|