- maven
- sonar
script:
- - mvn verify sonar:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'
+ - mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=my-project -Dsonar.projectName='MyProject'
caches:
sonar: ~/.sonar
- maven
- sonar
script:
- - mvn verify sonar:sonar -Dsonar.projectKey=${projectKey} -Dsonar.projectName='${projectName}'
+ - mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=${projectKey} -Dsonar.projectName='${projectName}'
caches:
sonar: ~/.sonar
stage: sonarqube-check
script:
- - mvn verify sonar:sonar
+ - mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
allow_failure: true
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
[BuildTools.Maven]: {
image: 'maven:3-eclipse-temurin-17',
script: () => `
- - mvn verify sonar:sonar`,
+ - mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar`,
},
[BuildTools.DotNet]: {
image: 'mcr.microsoft.com/dotnet/sdk:7.0',