homebrew-core/Formula/micronaut.rb
2020-01-17 00:42:54 -05:00

21 lines
635 B
Ruby

class Micronaut < Formula
desc "Modern JVM-based framework for building modular microservices"
homepage "https://micronaut.io/"
url "https://github.com/micronaut-projects/micronaut-core/releases/download/v1.2.9/micronaut-1.2.9.zip"
sha256 "9c679b63c9f2d8065c2cdc896f3a0f94370cfc878eb52b65deae3aa2c41384d7"
bottle :unneeded
depends_on :java => "1.8+"
def install
rm_f Dir["bin/*.bat"]
libexec.install %W[bin media cli-#{version}.jar]
bin.install_symlink libexec/"bin/mn"
end
test do
system "#{bin}/mn", "create-app", "hello-world"
assert_predicate testpath/"hello-world", :directory?
end
end