You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by we...@apache.org on 2024/02/05 07:03:31 UTC

(cloudstack) 01/01: .github: use JRE17 for sonar check

This is an automated email from the ASF dual-hosted git repository.

weizhou pushed a commit to branch 4.20-sonar-jre17
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit b16d00adee494ff67e40f408045479204abab1d4
Author: Wei Zhou <we...@apache.org>
AuthorDate: Mon Feb 5 08:03:11 2024 +0100

    .github: use JRE17 for sonar check
    
    this fixes the issue
    ```
    Error:  Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project cloudstack:
    Error:
    Error:  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.
    Error:  You can find more information here: https://docs.sonarsource.com/sonarcloud/appendices/scanner-environment/
    ```
---
 .github/workflows/main-sonar-check.yml | 4 ++--
 .github/workflows/sonar-check.yml      | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/main-sonar-check.yml b/.github/workflows/main-sonar-check.yml
index cc27309f8a5..59ee7783e40 100644
--- a/.github/workflows/main-sonar-check.yml
+++ b/.github/workflows/main-sonar-check.yml
@@ -36,11 +36,11 @@ jobs:
         with:
           fetch-depth: 0
 
-      - name: Set up JDK11
+      - name: Set up JDK17
         uses: actions/setup-java@v3
         with:
           distribution: 'temurin'
-          java-version: '11'
+          java-version: '17'
           cache: 'maven'
 
       - name: Cache SonarCloud packages
diff --git a/.github/workflows/sonar-check.yml b/.github/workflows/sonar-check.yml
index a8282f25145..cbe987ea7fe 100644
--- a/.github/workflows/sonar-check.yml
+++ b/.github/workflows/sonar-check.yml
@@ -38,11 +38,11 @@ jobs:
           ref: "refs/pull/${{ github.event.number }}/merge"
           fetch-depth: 0
 
-      - name: Set up JDK11
+      - name: Set up JDK17
         uses: actions/setup-java@v3
         with:
           distribution: 'temurin'
-          java-version: '11'
+          java-version: '17'
           cache: 'maven'
 
       - name: Cache SonarCloud packages