homebrew-core/Formula/gradle@2.14.rb

22 lines
617 B
Ruby

class GradleAT214 < Formula
desc "Gradle build automation tool"
homepage "https://www.gradle.org/"
url "https://downloads.gradle.org/distributions/gradle-2.14.1-bin.zip"
sha256 "cfc61eda71f2d12a572822644ce13d2919407595c2aec3e3566d2aab6f97ef39"
bottle :unneeded
keg_only :versioned_formula
depends_on :java => "1.8"
def install
libexec.install %w[bin lib]
(bin/"gradle").write_env_script libexec/"bin/gradle", Language::Java.java_home_env("1.8")
end
test do
ENV["GRADLE_USER_HOME"] = testpath
assert_match "Gradle #{version}", shell_output("#{bin}/gradle --version")
end
end