kza
kza

Reputation: 1610

How to skip sonarqube analysis of gradle module

I have a multi module gradle java project analyzed with sonarqube.

I need to skip sonarqube analysis of one module entirely.

I was not able to find a solution in sonarqube documentation. Closest page is Narrowing The Focus, but it is about skipping files and directories while I'd like to skip entire module. See https://docs.sonarqube.org/display/SONAR/Narrowing+the+Focus

Upvotes: 5

Views: 11291

Answers (1)

kza
kza

Reputation: 1610

You have to set skipProject to true in a project you want to skip:

sonarqube {
    skipProject = true
}

https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Gradle#AnalyzingwithSonarQubeScannerforGradle-Skippinganalysisofaproject

Upvotes: 18

Related Questions