helios.rb (19 lines of code) (raw):
require "formula"
class Helios < Formula
homepage "https://github.com/spotify/helios"
url "https://oss.sonatype.org/service/local/repositories/releases/content/com/spotify/helios-tools/0.9.282/helios-tools-0.9.282-shaded.jar"
sha256 "d6461bd3d45ca51bc5b75af479e75c0d060b249dee6a9c92692cf2f5ba97bd0d"
version "0.9.282"
depends_on "openjdk"
def install
jarfile = "helios-tools-#{version}-shaded.jar"
libexec.install jarfile
(bin+"helios").write <<~EOS
#!/usr/bin/env bash
export SUPPRESS_GCLOUD_CREDS_WARNING=true
exec java -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xverify:none -jar #{libexec}/#{jarfile} "$@"
EOS
end
test do
system "#{bin}/helios", "--version"
end
end