Merge pull request #207020 from Homebrew/bump-qpdf-11.10.0
[Homebrew/homebrew-core.git] / Formula / g / groovysdk.rb
blobebb2f2be34185a8bc1829d4fcbdb254ff62a2540
1 class Groovysdk < Formula
2   desc "SDK for Groovy: a Java-based scripting language"
3   homepage "https://www.groovy-lang.org/"
4   url "https://groovy.jfrog.io/artifactory/dist-release-local/groovy-zips/apache-groovy-sdk-4.0.25.zip"
5   sha256 "747004e9de503a615034d5f57e63a0608d11c3d6d8a4f20ea3760e64d1a471da"
6   license "Apache-2.0"
8   livecheck do
9     url "https://groovy.apache.org/download.html"
10     regex(/href=.*?apache-groovy-sdk[._-]v?(\d+(?:\.\d+)+)\.zip/i)
11   end
13   bottle do
14     sha256 cellar: :any_skip_relocation, arm64_sequoia: "a3b512377361d281b6c275f3113d986607070bb5e24d76be54a936241cd31708"
15     sha256 cellar: :any_skip_relocation, arm64_sonoma:  "a3b512377361d281b6c275f3113d986607070bb5e24d76be54a936241cd31708"
16     sha256 cellar: :any_skip_relocation, arm64_ventura: "a3b512377361d281b6c275f3113d986607070bb5e24d76be54a936241cd31708"
17     sha256 cellar: :any_skip_relocation, sonoma:        "5e19ad027f51679a6d23ec7d211811505f216fa75cc0740d0e43021156647313"
18     sha256 cellar: :any_skip_relocation, ventura:       "5e19ad027f51679a6d23ec7d211811505f216fa75cc0740d0e43021156647313"
19     sha256 cellar: :any_skip_relocation, x86_64_linux:  "a3b512377361d281b6c275f3113d986607070bb5e24d76be54a936241cd31708"
20   end
22   depends_on "openjdk"
24   conflicts_with "groovy", because: "both install the same binaries"
26   def install
27     # We don't need Windows' files.
28     rm(Dir["bin/*.bat"])
30     bin.install Dir["bin/*"]
31     libexec.install "conf", "lib", "src", "doc"
32     bin.env_script_all_files libexec/"bin",
33                              GROOVY_HOME: libexec,
34                              JAVA_HOME:   "${JAVA_HOME:-#{Formula["openjdk"].opt_prefix}}"
35   end
37   test do
38     system bin/"grape", "install", "org.activiti", "activiti-engine", "5.16.4"
39   end
40 end