Closed wkl3nk closed 1 month ago
The Gradle plugin iterates over the gradle configurations, tries to exclude (plugin) configurations that are deprecated.
Still interesting how this can result in seeing less (or zero) dependencies. I would have assumed that if the Gradle analyzer does not exclude enough, we'd rather see too many dependencies.
Describe the bug
I use the Analyzer CLI to directly analyze a checked-out repository. I explicitly use the Gradle package manager, not GradleInspector. The repository is a simple gradle-based project with a little bit of Spring Boot.
Expected behavior
I would have expected > 60 dependencies, but I get 0.
Analysis
The Gradle plugin iterates over the gradle configurations, tries to exclude (plugin) configurations that are deprecated. Since Gradle 8.2, the configuration property
resolutionAlternatives
has changed to aImmutableList
, and this property can no longer benull
, but instead the list can be empty. The code inside of the Gradle plugin does not reflect that change.On the other hand, the code in the GradleInspector does reflect this change: https://github.com/oss-review-toolkit/ort/commit/1d172c9ea9bb7efa1bc1653116fea0b634fe41bc
Please hang on for a PR.