Should sonar plugin apply base plugin?


(spencer_allain) #1

Applying the sonar plugin to the root project without applying any other plugins has the interesting side-effect of not being able to clean out the build directory (which contains a fair amount of stuff under the build/sonar/batch subdirectory) with “gradle clean”.

The only reason I could see for this is to ensure that subsequent sonarAnalyze tasks would run faster without having to download the jars necessary for sonar to run again. Is this the case, or would it make sense to apply the base plugin if not already applied?

-Spencer