How to find/remove unused dependencies in Gradle

后端 未结 6 1017
花落未央
花落未央 2020-11-30 18:28

I wanted to find unused dependencies in my project. Is there a feature for this in Gradle, like in Maven?

6条回答
  •  借酒劲吻你
    2020-11-30 18:50

    I just learned about this one: https://plugins.gradle.org/plugin/com.autonomousapps.dependency-analysis

    Github

    From the looks it is under active development, but I haven't tested it yet.

    Edit: Actually its pretty awesome, it provides lots of advises (e.g. whether to use api vs implementation)

提交回复
热议问题