diff --git a/Formula/g/gradle-profiler.rb b/Formula/g/gradle-profiler.rb index 29d9bb47e5be9..ed7198f31cf13 100644 --- a/Formula/g/gradle-profiler.rb +++ b/Formula/g/gradle-profiler.rb @@ -11,25 +11,23 @@ class GradleProfiler < Formula end bottle do - sha256 cellar: :any_skip_relocation, all: "efaeffff25c03add41a89b4b1b7fcde8be147afd96baae57366787ffa9ba5c90" + rebuild 1 + sha256 cellar: :any_skip_relocation, all: "ee98c908d6a53450edcc507a6492b2ab8ea024ac455ab49c5baca51cc8c327d1" 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