class JbossForge < Formula desc "Tools to help set up and configure a project" homepage "https://forge.jboss.org/" url "https://downloads.jboss.org/forge/releases/3.9.4.Final/forge-distribution-3.9.4.Final-offline.zip" version "3.9.4.Final" sha256 "7b26f0d89fe62bd750be8016486cd31d8b43dce28d24ad8e1a07cbe66feb8537" bottle :unneeded depends_on :java => "1.8+" def install rm_f Dir["bin/*.bat"] libexec.install %w[addons bin lib logging.properties] bin.install_symlink libexec/"bin/forge" end test do assert_match "org.jboss.forge.addon:core", shell_output("#{bin}/forge --list") end end