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.8.1/sjk-plus-0.8.1.jar" sha256 "4dbdafda67c3dae565a1ee410c36608e4203ad24647fc20d0c396092fb7da1f3" 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