From a01180d49b7f7fcd487626f230282f6c822f92cb Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Fri, 6 Dec 2024 19:13:18 +0000 Subject: [PATCH 1/2] gradle-profiler: bump openjdk@11 to openjdk --- Formula/g/gradle-profiler.rb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Formula/g/gradle-profiler.rb b/Formula/g/gradle-profiler.rb index 29d9bb47e5be9..e8417455287dc 100644 --- a/Formula/g/gradle-profiler.rb +++ b/Formula/g/gradle-profiler.rb @@ -14,22 +14,19 @@ class GradleProfiler < Formula sha256 cellar: :any_skip_relocation, all: "efaeffff25c03add41a89b4b1b7fcde8be147afd96baae57366787ffa9ba5c90" end - # gradle currently does not support Java 17 (ARM) - # gradle@6 is still default gradle-version, but does not support Java 16 - # Switch to `openjdk` once above situations are no longer true - depends_on "openjdk@11" + depends_on "openjdk" def install rm(Dir["bin/*.bat"]) libexec.install %w[bin lib] - env = Language::Java.overridable_java_home_env("11") + env = Language::Java.overridable_java_home_env (bin/"gradle-profiler").write_env_script libexec/"bin/gradle-profiler", env end test do (testpath/"settings.gradle").write "" (testpath/"build.gradle").write 'println "Hello"' - output = shell_output("#{bin}/gradle-profiler --gradle-version 7.0 --profile chrome-trace") - assert_includes output, "* Results written to" + output = shell_output("#{bin}/gradle-profiler --gradle-version 8.11 --profile chrome-trace") + assert_includes output, "* Writing results to" end end From ca3ba959c304fb06128478944607093c10c92bc2 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Fri, 6 Dec 2024 22:27:17 +0000 Subject: [PATCH 2/2] gradle-profiler: update 0.21.0 bottle. --- Formula/g/gradle-profiler.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Formula/g/gradle-profiler.rb b/Formula/g/gradle-profiler.rb index e8417455287dc..ed7198f31cf13 100644 --- a/Formula/g/gradle-profiler.rb +++ b/Formula/g/gradle-profiler.rb @@ -11,7 +11,8 @@ class GradleProfiler < Formula end bottle do - sha256 cellar: :any_skip_relocation, all: "efaeffff25c03add41a89b4b1b7fcde8be147afd96baae57366787ffa9ba5c90" + rebuild 1 + sha256 cellar: :any_skip_relocation, all: "ee98c908d6a53450edcc507a6492b2ab8ea024ac455ab49c5baca51cc8c327d1" end depends_on "openjdk"