Skip to content

Commit 035e0b2

Browse files
committed
grails 7.0.0
Signed-off-by: Rui Chen <[email protected]>
1 parent 3500172 commit 035e0b2

File tree

1 file changed

+9
-26
lines changed

1 file changed

+9
-26
lines changed

Formula/g/grails.rb

Lines changed: 9 additions & 26 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
@@ -16,36 +16,19 @@ class Grails < Formula
1616
sha256 cellar: :any_skip_relocation, all: "886fd3f292e6425dcc217aadb07ee135e47ea536ef199fcc3876dfe4bf6fe589"
1717
end
1818

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
19+
depends_on "openjdk@21"
3020

3121
def java_version
32-
"17"
22+
"21"
3323
end
3424

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

38-
rm_r("bin") # Use cli resource, should be removed at version 7
3929
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)
30+
bin.install Dir["#{libexec}/bin/*"]
31+
bin.env_script_all_files libexec/"bin", Language::Java.java_home_env(java_version)
4932
end
5033

5134
def caveats

0 commit comments

Comments
 (0)