homebrew-core/Formula/gssh.rb

29 lines
881 B
Ruby

class Gssh < Formula
desc "SSH automation tool based on Groovy DSL"
homepage "https://github.com/int128/groovy-ssh"
url "https://github.com/int128/groovy-ssh/archive/2.10.1.tar.gz"
sha256 "d1a6e2293e4f23f3245ede7d473a08d4fb6019bf18efbef1a74c894d5c50d6a1"
license "Apache-2.0"
revision 1
bottle do
cellar :any_skip_relocation
sha256 "170b7e0b5c81eb30f12471b8342f23179d5febff44835297d1648c124cd94733" => :catalina
sha256 "d4f7b427c456b891a7604988bba90850c81da7d9714788383ab6e9083a763d1c" => :mojave
sha256 "51e468107da90b71b335a7dcdf0ff6149930634a8625cf2019d45add410d2852" => :high_sierra
end
depends_on "openjdk@11"
def install
ENV["CIRCLE_TAG"] = version
system "./gradlew", "shadowJar"
libexec.install "cli/build/libs/gssh.jar"
bin.write_jar_script libexec/"gssh.jar", "gssh"
end
test do
system bin/"gssh"
end
end