Listing unused dependencies in gradle project

Hi,

I need to identify list of dependencies that are not required for our project and remove those.
Is there any tool or way to identify the dependencies that are not required.

i have around 150 jars in my library when i build war.Please suggest some automated way of solving this.

I haven’t had to do this, but note that there was a presentation at the recent Gradle Summit about “Gradle Lint” that talks about a tool that provides this exact feature. I don’t know whether it’s publicly available.

Here’s the link for the recorded presentation: https://www.youtube.com/watch?v=0ZS_bqD1dkg

I believe it is the nebula-lint plugin. Netflix has been tweaking the names of these plugins and releasing them under the Nebula Project. Lots of good stuff here.

1 Like