fossas / fossa-cli

Fast, portable and reliable dependency analysis for any codebase. Supports license & vulnerability scanning for large monoliths. Language-agnostic; integrates with 20+ build systems.
https://fossa.com
Other
1.29k stars 173 forks source link

[ANE-695] gradle: check if configuration is deprecated #1457

Closed jagonalez closed 3 months ago

jagonalez commented 3 months ago

Overview

Acceptance criteria

Testing plan

Risks

Metrics

Is this change something that can or should be tracked? If so, can we do it today? And how? If its easy, do it

References

Add links to any referenced GitHub issues, Zendesk tickets, Jira tickets, Slack threads, etc.

Example:

Checklist

jagonalez commented 3 months ago

I know you linked to some Gradle code, but I'm not sure how that relates to specifically what we're doing.

The code I linked is for how Gradle reports dependencies when running gradle dependencies. In Gradle 6 - 7, gradle deprecated configurations: https://docs.gradle.org/current/userguide/declaring_dependencies.html#sec:deprecated-configurations.

If you compare gradle dependencies vs the fossa-cli output when a gradle project has a deprecated config - we are reporting more dependenices than gradle dependencies. IMO we should be reporting the same dependencies that gradle does.