Erdinc Ay
Erdinc Ay

Reputation: 3283

Why is Gradle building my Java project, when I just call für a SonarQube analysis?

I am wondering why Gradle builds my project, when I call Sonarqube for static code analysis:

./gradlew sonarqube

How can I prevent Gradle from building the whole project?

Upvotes: 1

Views: 137

Answers (1)

Benoit
Benoit

Reputation: 5394

Sonarqube does not only analyze the source code. It also produces some reports on code coverage of tests. Therefore tests must be run and all your code needs to be compiled.

If your project is in Java, this post also explains that Sonarqube performs semantic analysis based on .class file

Upvotes: 4

Related Questions