homebrew-core/Formula/gradle.rb
2020-01-17 18:36:28 +01:00

20 lines
612 B
Ruby

class Gradle < Formula
desc "Open-source build automation tool based on the Groovy and Kotlin DSL"
homepage "https://www.gradle.org/"
url "https://services.gradle.org/distributions/gradle-6.1-all.zip"
sha256 "634f972af958e3c753aeb42d7a688fab6820b527a0aef9eed03d7f3f6f9c7c06"
bottle :unneeded
depends_on :java => "1.8+"
def install
rm_f Dir["bin/*.bat"]
libexec.install %w[bin docs lib src]
(bin/"gradle").write_env_script libexec/"bin/gradle", Language::Java.overridable_java_home_env
end
test do
assert_match version.to_s, shell_output("#{bin}/gradle --version")
end
end