class Gradle < Formula desc "Build system based on the Groovy language" homepage "https://www.gradle.org/" url "https://downloads.gradle.org/distributions/gradle-3.0-bin.zip" sha256 "39c906941a474444afbddc38144ed44166825acb0a57b0551dddb04bbf157f80" bottle :unneeded depends_on java: "1.7+" def install libexec.install %w[bin lib] bin.install_symlink libexec/"bin/gradle" end test do ENV.java_cache assert_match version.to_s, shell_output("#{bin}/gradle --version") end end