Skip to content

Commit

Permalink
commandbox: downgrade to openjdk@11
Browse files Browse the repository at this point in the history
Closes #72535.

Signed-off-by: Carlo Cabrera <[email protected]>
Signed-off-by: BrewTestBot <[email protected]>
  • Loading branch information
Moisan authored and BrewTestBot committed May 31, 2021
1 parent 39261d7 commit 49dc548
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Formula/commandbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Commandbox < Formula
url "https://downloads.ortussolutions.com/ortussolutions/commandbox/5.3.1/commandbox-bin-5.3.1.zip"
sha256 "f0e1f3b989a8664c3f7d0f02362ae8b0f3ab0ecd2b923b3ceeb89a4cf46cb614"
license "LGPL-3.0-or-later"
revision 1

livecheck do
url :homepage
Expand All @@ -14,7 +15,8 @@ class Commandbox < Formula
sha256 cellar: :any_skip_relocation, all: "7ab51feadd7ba7c1525c98a0d7a96d010a374cc1ea69b7989cb033115a1316eb"
end

depends_on "openjdk"
# not yet compatible with Java 17 on ARM
depends_on "openjdk@11"

resource "apidocs" do
url "https://downloads.ortussolutions.com/ortussolutions/commandbox/5.3.1/commandbox-apidocs-5.3.1.zip"
Expand All @@ -23,7 +25,7 @@ class Commandbox < Formula

def install
(libexec/"bin").install "box"
(bin/"box").write_env_script libexec/"bin/box", Language::Java.overridable_java_home_env
(bin/"box").write_env_script libexec/"bin/box", Language::Java.overridable_java_home_env("11")
doc.install resource("apidocs")
end

Expand Down

0 comments on commit 49dc548

Please sign in to comment.