diff --git a/.drone.yml b/.drone.yml index 127a6f6..bdd4f19 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,10 +17,7 @@ steps: - find - name: code-analysis - image: aosapps/drone-sonar-plugin - settings: - sonar_host: - from_secret: sonar_host - sonar_token: - from_secret: sonar_token - usingProperties: true \ No newline at end of file + image: maven:3-eclipse-temurin-16 + commands: + - mvn sonar:sonar -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.host.url=$SONAR_INSTANCE_URL -Dsonar.login=$SONAR_LOGIN_KEY + secrets: [sonar_project_key, sonar_instance_url, sonar_login_key] \ No newline at end of file diff --git a/pom.xml b/pom.xml index 6a68383..9dd6e31 100644 --- a/pom.xml +++ b/pom.xml @@ -97,6 +97,13 @@ 3.4.1 + + + org.sonarsource.scanner.maven + sonar-maven-plugin + 3.9.1.2184 + +