Got here via this thread - Sonar-scanner downloading unneeded plugins, but couldn’t see that a feature request had been created…so apologies if this is a duplicate.
We are in the process of trialling SonarQube and came across this issue as we started adding more and more plugins to support the different languages that our projects are written in.
Initially with just the golang plugin enabled, the project took ~1 minute to complete it’s analysis, but now with several other plugins enabled (css, js,PHP, python), the same stage take ~25minutes to complete…mostly due to downloading all of those plugins that sonar-scanner then doesn’t use.
We are using auto scaling ec2 gitlab runners, therefore each job is running in a clean environment with no cache, so having sonar-scanner only download the plugins for the languages configured with sonar.languages would be hugely beneficial.
SonarQube - Community Edition - 8.3.1
Using sonarsource/sonar-scanner-cli:latest doker image for the scanner