Skip to content

Gradle plugin for Java, Kotlin, and Android projects. Provides advice for managing dependencies and other applied plugins

License

Notifications You must be signed in to change notification settings

seankim-android/dependency-analysis-android-gradle-plugin

 
 

Repository files navigation

Latest version
Latest snapshot
Build status

Detect unused and misused dependencies

The Dependency Analysis Gradle Plugin (née Dependency Analysis Android Gradle Plugin) detects the following:

  1. Unused dependencies.

  2. Used transitive dependencies (which you may want to declare directly).

  3. Dependencies declared on the wrong configuration (api vs implementation vs compileOnly, etc.).

  4. Unnecessary plugins (currently only kapt).

As a side effect, the plugin can also tell you your project’s ABI, and produces graphviz files representing various views of your dependency graph, among other things. These side effects are currently mostly undocumented internal behaviors, but they may be interesting for some advanced users.

Add to your project and use

For detailed instructions, see the wiki

The simplest approach is to add the following:

root build.gradle
plugins {
  id 'com.autonomousapps.dependency-analysis' version "<<latest_version>>"
}

For a quick start, just run the following:

./gradlew buildHealth

About

Gradle plugin for Java, Kotlin, and Android projects. Provides advice for managing dependencies and other applied plugins

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 70.6%
  • Groovy 19.1%
  • ANTLR 5.2%
  • Java 5.1%