Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't enable groovy files analysis #78

Open
tdurova opened this issue Sep 11, 2018 · 6 comments
Open

Can't enable groovy files analysis #78

tdurova opened this issue Sep 11, 2018 · 6 comments

Comments

@tdurova
Copy link

tdurova commented Sep 11, 2018

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
Copy link

ghost commented Sep 19, 2018

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
Copy link
Author

tdurova commented Oct 5, 2018

@pucii
I use Version 7.0 (build 36138)

@CCFenner
Copy link
Contributor

CCFenner commented Oct 9, 2018

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

@tdurova
Copy link
Author

tdurova commented Oct 22, 2018

It can't

@pmelopereira
Copy link

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
Copy link

TobiX commented Jul 11, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants