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

Optimization: Enable on-demand plugin download #8160

Merged

Conversation

gregory-paidis-sonarsource
Copy link
Contributor

Fixes #8038

Copy link
Contributor

@pavel-mikula-sonarsource pavel-mikula-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's see what value we really need there in this repo

pom.xml Outdated
@@ -6,7 +6,7 @@
<parent>
<groupId>org.sonarsource.parent</groupId>
<artifactId>parent</artifactId>
<version>68.0.0.247</version>
<version>70.0.0.270</version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please bump this in a separate PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR has been split

@@ -155,7 +155,8 @@
<pluginClass>org.sonar.plugins.csharp.CSharpPlugin</pluginClass>
<skipDependenciesPackaging>true</skipDependenciesPackaging>
<sonarLintSupported>false</sonarLintSupported>
<sonarQubeMinVersion>${sonarLTS.version}</sonarQubeMinVersion> <!-- runtime minimal API version -->
<pluginApiMinVersion>${sonarLTS.version}</pluginApiMinVersion> <!-- runtime minimal API version -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pluginApiMinVersion is not the same thing as SQ version. They have independent lifecycles now.

Hardcode the value here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think API version is in sonar.version property. Can you check with Cody if that's the case and having 10.1.0.809 would work here?

sonar-dotnet doesn't care about MIN Api version, because we do not run in Java SonarLint flavors, and we always run under the latest release of SQ/SC.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be fine. In any case, it should not affect the on-demand downloading feature.

@pavel-mikula-sonarsource
Copy link
Contributor

The PR title and the issue title are not in sync now. They should be (one or other way, or somewhere in between)

@gregory-paidis-sonarsource gregory-paidis-sonarsource changed the title Optimization: Enable on-demand download Optimization: Enable on-demand plugin download Oct 9, 2023
@gregory-paidis-sonarsource gregory-paidis-sonarsource force-pushed the greg/enable-on-demand-plugin-download branch from d749e3b to 5e9fae9 Compare October 9, 2023 13:44
Copy link
Contributor

@pavel-mikula-sonarsource pavel-mikula-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gregory-paidis-sonarsource gregory-paidis-sonarsource force-pushed the greg/enable-on-demand-plugin-download branch from 5e9fae9 to 2f9a626 Compare October 9, 2023 14:50
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@gregory-paidis-sonarsource gregory-paidis-sonarsource merged commit 85daca1 into master Oct 9, 2023
22 checks passed
@gregory-paidis-sonarsource gregory-paidis-sonarsource deleted the greg/enable-on-demand-plugin-download branch October 9, 2023 15:22
sebastien-marichal added a commit that referenced this pull request Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimization: Enable on-demand plugin download
3 participants