From 35237e2307198bc2c4b5991226fafc0ba6b77195 Mon Sep 17 00:00:00 2001 From: Thierry Moisan Date: Sun, 8 Jan 2023 14:54:58 -0500 Subject: [PATCH] sonarqube: use openjdk@17 Closes #120079. Signed-off-by: Michael Cho <20700669+cho-m@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> --- Formula/sonarqube.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/sonarqube.rb b/Formula/sonarqube.rb index c7be788d7fb..bac11a98c35 100644 --- a/Formula/sonarqube.rb +++ b/Formula/sonarqube.rb @@ -20,7 +20,7 @@ class Sonarqube < Formula sha256 cellar: :any_skip_relocation, x86_64_linux: "27a13db9e7e579600c980f66b66ac9b8ce0814d8eeba24e7d454c61bba4de362" end - depends_on "openjdk@11" + depends_on "openjdk@17" conflicts_with "sonarqube-lts", because: "both install the same binaries" @@ -39,7 +39,7 @@ class Sonarqube < Formula end libexec.install Dir["*"] - env = Language::Java.overridable_java_home_env("11") + env = Language::Java.overridable_java_home_env("17") env["PATH"] = "$JAVA_HOME/bin:$PATH" (bin/"sonar").write_env_script libexec/"bin"/platform/"sonar.sh", env end