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>
master
Thierry Moisan 2023-01-08 14:54:58 -05:00 committed by BrewTestBot
parent 24f7db08ac
commit 35237e2307
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class Sonarqube < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "27a13db9e7e579600c980f66b66ac9b8ce0814d8eeba24e7d454c61bba4de362" sha256 cellar: :any_skip_relocation, x86_64_linux: "27a13db9e7e579600c980f66b66ac9b8ce0814d8eeba24e7d454c61bba4de362"
end end
depends_on "openjdk@11" depends_on "openjdk@17"
conflicts_with "sonarqube-lts", because: "both install the same binaries" conflicts_with "sonarqube-lts", because: "both install the same binaries"
@ -39,7 +39,7 @@ class Sonarqube < Formula
end end
libexec.install Dir["*"] 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" env["PATH"] = "$JAVA_HOME/bin:$PATH"
(bin/"sonar").write_env_script libexec/"bin"/platform/"sonar.sh", env (bin/"sonar").write_env_script libexec/"bin"/platform/"sonar.sh", env
end end