class Sjk < Formula desc "Swiss Java Knife" homepage "https://github.com/aragozin/jvm-tools" url "https://search.maven.org/remotecontent?filepath=org/gridkit/jvmtool/sjk-plus/0.9.1/sjk-plus-0.9.1.jar" sha256 "ea3b20ebe8f56e727cdb84d9810444c1c78b15c2b10fd595b4ee5cededca0756" bottle :unneeded depends_on :java def install libexec.install "sjk-plus-#{version}.jar" bin.write_jar_script "#{libexec}/sjk-plus-#{version}.jar", "sjk" end test do system bin/"sjk", "jps" end end