Tom Panning
Tom Panning

Reputation: 4772

How to find unused Gradle repositories

I'm working on a project that has added and removed library dependencies over time, and more than one repository is being used. Is there a way to see which of the declared repositories are or aren't being used?

Upvotes: 0

Views: 288

Answers (1)

Peter Niederwieser
Peter Niederwieser

Reputation: 123920

There is no built-in way to see which of the declared repositories are (not) being used. Perhaps you could get this information by running with --refresh-dependencies and scraping the --info logs. Otherwise it will likely be a manual trial-and-error operation (comment repositories in/out until you've found a minimal set).

Upvotes: 1

Related Questions