SCANGRADLE-317 Compute libraries in SonarResolverTask configuration instead of SonarPropertyComputer #399
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.




Summary
Uniformize library computation across all project types by moving it to
SonarResolverTaskconfiguration phase.Previously, only Android projects computed libraries in
SonarResolverTask, while non-Android projects computed them inSonarPropertyComputerbecause of a parallel execution issues with Gradle 9.1.0 (SCANGRADLE-292).This issue could potentially also happen for non-Android project, which we aim to address with this PR.
Now all projects (Android and non-Android) compute libraries during task configuration in
SonarResolverTask, making it safe for parallel execution.Changes
getRuntimeJars()methods toSonarUtilsfor reusesetJavaLibrariesProperties()to configure libraries for non-Android projectsSonarPropertyComputerThis pull request is based on #391, and needs to be rebased before review.
Please be aware that we are not actively looking for feature contributions. The truth is that it's extremely difficult for someone outside SonarSource to comply with our roadmap and expectations. Therefore, we typically only accept minor cosmetic changes and typo fixes. If you would like to see a new feature, please create a new thread in the forum "Suggest new features".
With that in mind, if you would like to submit a code contribution, make sure that you adhere to the following guidelines and all tests are passing:
We will try to give you feedback on your contribution as quickly as possible.
Thank You!
The SonarSource Team