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.6/sjk-plus-0.6.jar" sha256 "90056db5810f5ea535cdf7514d0ce6a72f71341684eb8f40f208b748a1b20650" 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