class AvroTools < Formula desc "Avro command-line tools and utilities" homepage "https://avro.apache.org/" url "https://www.apache.org/dyn/closer.cgi?path=avro/avro-1.9.1/java/avro-tools-1.9.1.jar" sha256 "940b0865b2824fa4b85247f6f5211ace480abd13f9d87b4828ee233233713c43" bottle :unneeded def install libexec.install "avro-tools-#{version}.jar" bin.write_jar_script libexec/"avro-tools-#{version}.jar", "avro-tools" end test do assert_match "Version #{version}", shell_output("#{bin}/avro-tools 2>&1", 1) end end