Skip to content

Commit 385a61a

Browse files
authored
Merge pull request #251659 from Homebrew/grails-7.0.0
grails 7.0.0
2 parents 17fcda8 + 3bc5552 commit 385a61a

File tree

1 file changed

+10
-28
lines changed

1 file changed

+10
-28
lines changed

Formula/g/grails.rb

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Grails < Formula
22
desc "Web application framework for the Groovy language"
3-
homepage "https://grails.org"
4-
url "https://github.com/apache/grails-core/releases/download/v6.2.3/grails-6.2.3.zip"
5-
sha256 "b41e95efad66e2b93b4e26664f746a409ea70d43548e6c011e9695874a710b09"
3+
homepage "https://grails.apache.org/"
4+
url "https://github.com/apache/grails-core/releases/download/v7.0.0/apache-grails-7.0.0-bin.zip"
5+
sha256 "aff1bb4e5b5ea92677795b833500657d20fead3e87c4ae33b011cf628274c583"
66
license "Apache-2.0"
77

88
livecheck do
@@ -12,40 +12,22 @@ class Grails < Formula
1212
end
1313

1414
bottle do
15-
rebuild 1
16-
sha256 cellar: :any_skip_relocation, all: "886fd3f292e6425dcc217aadb07ee135e47ea536ef199fcc3876dfe4bf6fe589"
15+
sha256 cellar: :any_skip_relocation, all: "4ff8ae9321c8f2f276650bb823de5b413137c2e3323b93df7cc694ba1ba8fc18"
1716
end
1817

19-
depends_on "openjdk@17"
20-
21-
# TODO: grails-forge is merged into core at version 7
22-
resource "cli" do
23-
url "https://github.com/apache/grails-forge/releases/download/v6.2.3/grails-cli-6.2.3.zip"
24-
sha256 "ef78a48238629a89d64996367d0424bc872978caf6c23c3cdae92b106e2b1731"
25-
26-
livecheck do
27-
formula :parent
28-
end
29-
end
18+
depends_on "openjdk@21"
3019

3120
def java_version
32-
"17"
21+
"21"
3322
end
3423

3524
def install
36-
odie "cli resource needs to be updated" if version != resource("cli").version
25+
# Remove Windows files
26+
rm Dir["bin/*.bat"]
3727

38-
rm_r("bin") # Use cli resource, should be removed at version 7
3928
libexec.install Dir["*"]
40-
41-
resource("cli").stage do
42-
rm("bin/grails.bat")
43-
(libexec/"lib").install Dir["lib/*.jar"]
44-
bin.install "bin/grails"
45-
bash_completion.install "bin/grails_completion" => "grails"
46-
end
47-
48-
bin.env_script_all_files libexec/"bin", Language::Java.overridable_java_home_env(java_version)
29+
bin.install Dir["#{libexec}/bin/*"]
30+
bin.env_script_all_files libexec/"bin", Language::Java.java_home_env(java_version)
4931
end
5032

5133
def caveats

0 commit comments

Comments
 (0)