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

Make "sonar-checktyle" compatible with SonarQube 10.4 "DownloadOnlyWhenRequired" feature #499

Closed
agigleux opened this issue Jan 29, 2024 · 1 comment · Fixed by #504
Closed
Labels

Comments

@agigleux
Copy link

Hello,

I'm Alex, Product Manager at Sonar.

SonarQube 10.4 will come with a feature to only download plugins when they are required. When there are files corresponding to the language handled by the plugin, the plugin will be downloaded, otherwise, the plugin won't be downloaded. This is great to save network bandwidth and speed up the bootstrap of the scans.
This feature will be disabled by default to let the time to plugin maintainers to adjust their plugin. It will be activated by default with SonarQube 10.5

For plugins that have a dependency on a base analyzer provided by default with SonarQube, an additional property is required to be added to the MANIFEST of the plugin.
By doing so you will avoid being in this situation:

  • sonar-checkstyle is downloaded because it doesn't support the new property so it is downloaded from the server at each scan
  • sonar-java is not downloaded because there are no .java files in the repo to scan
  • a NoClassDefFoundError is thrown

In order to avoid that you need to:

@muhlba91
Copy link
Contributor

muhlba91 commented Mar 2, 2024

thank you for this notice!
we'll try to include it in the next release to make sure we stay compatible with this new property.

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

Successfully merging a pull request may close this issue.

2 participants