diff --git a/.drone.yml b/.drone.yml
index d968e30..3646489 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -10,13 +10,20 @@ steps:
image: maven:3-eclipse-temurin-16
commands:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
+ - find
- mvn javadoc:javadoc
+ - find
- mvn test -B
+ - find
- name: code-analysis
- image: aosapps/drone-sonar-plugin
- settings:
- sonar_host:
- from_secret: sonar_host
- sonar_token:
- from_secret: sonar_token
\ 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
+ environment:
+ SONAR_PROJECT_KEY:
+ from_secret: sonar_project_key
+ SONAR_INSTANCE_URL:
+ from_secret: sonar_instance_url
+ SONAR_LOGIN_KEY:
+ from_secret: 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
+
+