2015-10-24 18:22:53 +00:00
|
|
|
class Gdub < Formula
|
|
|
|
desc "Gdub is a Gradle wrapper wrapper"
|
|
|
|
homepage "http://www.gdub.rocks"
|
|
|
|
url "https://github.com/dougborg/gdub/archive/v0.1.0.tar.gz"
|
|
|
|
sha256 "ddf2572cc67b8df3293b1707720c6ef09d6caf73227fa869a73b16239df959c3"
|
|
|
|
|
2015-10-27 02:40:54 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2015-10-24 18:22:53 +00:00
|
|
|
depends_on "gradle"
|
|
|
|
|
|
|
|
def install
|
|
|
|
bin.install "bin/gw"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
ENV["_JAVA_OPTIONS"] = "-Duser.home=#{testpath}"
|
|
|
|
system "gradle", "init"
|
|
|
|
|
|
|
|
cd "gradle" do
|
|
|
|
system bin/"gw", "tasks"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|