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

sonar-cxx 2.x.y release compatible with Java 1.8 #2320

Closed
rngh101 opened this issue Feb 22, 2022 · 2 comments
Closed

sonar-cxx 2.x.y release compatible with Java 1.8 #2320

rngh101 opened this issue Feb 22, 2022 · 2 comments

Comments

@rngh101
Copy link

rngh101 commented Feb 22, 2022

Hi sonar-cxx plugin developers,

Is there a sonar-cxx 2.x plugin release which is compatible with a Java 1.8 version on the scanner side?

I have sonar-cxx 2.0.4 version plugin installed on SonarQube 7.9 server. However, my client side environment has Java 1.8.

When I trigger the sonar-scanner, it downloads the plugins from the server, and then stops abruptly throwing an exception saying that "The plugin [cxx] does not support Java 1.8".

I understand that either upgrading my environment to Java 11 or having a parallel Java 11 installation and using it to trigger the scanner will help.

But unfortunately, this cannot be done in some of my client environments.

Hence, I am looking for one of the following options if available:
a) Use a Java 1.8 compatible sonar-cxx plugin version
b) Any mechanism by which I can skip/exclude the sonar-cxx plugin from the scanner side?
c) Any mechanism by which I can control my server to not serve the sonar-cxx plugin when client tries to download it?

Thanks
Rajesh

@guwirth
Copy link
Collaborator

guwirth commented Feb 22, 2022

Hello @rngh101,

please search in the issues, this question was answered already (#2301).

Regards,

@guwirth
Copy link
Collaborator

guwirth commented Feb 26, 2022

Hi @rngh101,

a) Use a Java 1.8 compatible sonar-cxx plugin version

The plugin is developed and build with Java 11 dependencies. Only possibility I see is that you fork the plugin and build your own version with Java 8. We have no interest to do this because for SQ 9 Java 11 is also mandatory on scanner side and for most others Java 8 and Java 11 side by side on a PC is no issue (https://docs.sonarqube.org/latest/analysis/analysis-with-java-11/)

b) Any mechanism by which I can skip/exclude the sonar-cxx plugin from the scanner side?

Currently there is no possibility to exclude plugins, but SonarSource seems to work on it for upcoming releases: https://portal.productboard.com/sonarsource/3-sonarqube/c/158-remove-languages-from-an-instance.

c) Any mechanism by which I can control my server to not serve the sonar-cxx plugin when client tries to download it?

Same as above, I don’t know a solution. It’s also not possible to add a mechanism to the plugin because error happens already before entry point of plugin is called.

Regards,

@guwirth guwirth closed this as completed Feb 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants