SonarQube v25.1.0 is integrated with gitlab. How do I configure JDK8 for project

Now, I already know ”sonar.java.jdkHome“

mvn clean verify sonar:sonar \
  -Dsonar.projectKey=sccp_sccp-java-boot_1fe5fd9d-0791-4524-ba20-0d4d491f71f8 \
  -Dsonar.projectName='sccp-java-boot' \
  -Dsonar.host.url=http://10.2.4.215:9000 \
  -Dsonar.token=sqp_4faf94a1ba09afa9a34abba9a737653166758990 \
  -Dsonar.java.jdkHome=/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home

However, in.gitlab-ci.yml, maven:3-eclipse-temurin-17 ,How do I set up JDK 8 for my project ?

image: maven:3-eclipse-temurin-17

variables:
  SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar"  # Defines the location of the analysis task cache
  GIT_DEPTH: "0"  # Tells git to fetch all the branches of the project, required by the analysis task

stages:
  - build-sonar


build-sonar:
  stage: build-sonar
  
  
  cache:
    policy: pull-push
    key: "sonar-cache-$CI_COMMIT_REF_SLUG"
    paths:
      - "${SONAR_USER_HOME}/cache"
      - sonar-scanner/
      
  script: 
    - mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
  allow_failure: true
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
    - if: $CI_COMMIT_BRANCH == 'master'
    - if: $CI_COMMIT_BRANCH == 'main'
    - if: $CI_COMMIT_BRANCH == 'develop'

Hi,

Welcome to the community!

What are you trying to accomplish?

Are you asking how to pass parameters to analysis in a GitLab context?

 
Ann