Skip to content

Commit

Permalink
Merge pull request #200332 from bartekpacia/gradle-profiler-update
Browse files Browse the repository at this point in the history
gradle-profiler: bump openjdk@11 to openjdk
  • Loading branch information
BrewTestBot authored Dec 6, 2024
2 parents f667cb7 + ca3ba95 commit a10991e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Formula/g/gradle-profiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a10991e

Please sign in to comment.