pmayweg / sonar-groovy

SonarQube plugin for Groovy
GNU Lesser General Public License v3.0
52 stars 65 forks source link

Can't enable groovy files analysis #78

Open tdurova opened 6 years ago

tdurova commented 6 years ago

I have a maven project with groovy and java files. I ran SonarQube analyses for the project on SonarQube server when the Groovy plugin was not installed yet. Then with Groovy plugin installed, I added empty sonar-project.properties file to my project. And also <sonar.groovy.binaries>target/classes</sonar.groovy.binaries> to my pom file. Then I ran Jenkins job with a build step $SONAR_MAVEN_GOAL -Dsonar.host.url=$SONAR_HOST_URL and pre-build step clean package -Dmaven.test.skip=true.

The problem is that I still don't see any .groovy files on my Sonar project, which was created during the first run.

  1. Shall I create a new SonarQube project to see Sonar scanner results for groovy files?
  2. What has to be in sonar-project.properties, if default settings are OK for me? Can it be empty?
  3. Shall I use sonar-project.properties with maven project or just properties in the .pom file?
ghost commented 6 years ago

Hi, which version of SQ are You using? Because this plugin in SQ version 7.3 is not supported ( https://community.sonarsource.com/t/sq-7-3-ce-groovy-1-5-plugin-gradle-sonarqube-failed/1854 ) . According documentation also version 7.2 doesn't support this (but in my project this version hasn't any problem with groovy) .

tdurova commented 6 years ago

@pucii I use Version 7.0 (build 36138)

CCFenner commented 6 years ago

Can groovy files be analysed with the maven plugin? You could try to use the Sonar Scanner cli instead.

tdurova commented 6 years ago

It can't

pmelopereira commented 5 years ago

Is there a solution to this issue ? This plugin is not working with SonarQube version 7.8. Is there an alternative for Groovy analysis ?

TobiX commented 5 years ago

The new release 1.6 should support all recent SonarQube versions. If you still see this issue, please report it on the new project