You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: groovysdk.rb
    path of file: ./repos/homebrew-core/Formula/g
    
    the code of the file until where you have to start completion: class Groovysdk < Formula
  desc "SDK for Groovy: a Java-based scripting language"
  # TODO: remove `groovy-raw-#{version}-raw.jar` workaround when bump
  homepage "https://www.groovy-lang.org/"
  url "https://groovy.jfrog.io/artifactory/dist-release-local/groovy-zips/apache-groovy-sdk-4.0.19.zip"
  sha256 "b14670abfe74d2d79aca091cfecab5629b5c662b8d0310c42a143f342520b541"
  license "Apache-2.0"

  livecheck do
    url "https://groovy.apache.org/download.html"
    regex(/href=.*?apache-groovy-sdk[._-]v?(\d+(?:\.\d+)+)\.
    
  def install
    # We don't need Windows' files.
    rm_f Dir["bin/*.bat"]

    # workaround to fix startup issue, see discussions in https://issues.apache.org/jira/browse/GROOVY-11328
    rm_f "lib/groovy-raw-#{version}-raw.jar"

    prefix.install_metafiles
    bin.install Dir["bin/*"]
    libexec.install "conf", "lib", "src", "doc"
    bin.env_script_all_files libexec/"bin",
                             GROOVY_HOME: libexec,
                             JAVA_HOME:   "${JAVA_HOME:-#{Formula["openjdk"].opt_prefix}}"
  end

  test do
    system "#{bin}/grape", "install", "org.activiti", "activiti-engine", "5.16.4"
  end
end