24fa2cc36b
use java_cache env for test Closes Homebrew/homebrew#47253. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
19 lines
514 B
Ruby
19 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.10-bin.zip"
|
|
sha256 "66406247f745fc6f05ab382d3f8d3e120c339f34ef54b86f6dc5f6efc18fbb13"
|
|
|
|
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
|