From f5dec5b7b1ec70c9853bf5df1c7e476e5d36f8b8 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Thu, 22 Feb 2024 10:24:16 -0500 Subject: [PATCH] ci: sonar to use Java 17 SonarCloud build has been failing due to the error message: The version of Java (11.0.22) used to run this analysis is deprecated, and SonarCloud no longer supports it. Please upgrade to Java 17 or later. --- .github/workflows/sonar.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml index 64fdd4977..1c4e1def8 100644 --- a/.github/workflows/sonar.yaml +++ b/.github/workflows/sonar.yaml @@ -21,10 +21,11 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: Set up JDK 11 - uses: actions/setup-java@v1 + - name: Set up JDK 17 + uses: actions/setup-java@v4 with: - java-version: 11 + java-version: 17 + distribution: 'temurin' - name: Cache SonarCloud packages uses: actions/cache@v2 with: