gitWK86 / dependency-analysis-android-gradle-plugin

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Apache License 2.0


Languages

Language:Kotlin 60.6%Language:Groovy 25.8%Language:ANTLR 6.9%Language:Java 6.7%Language:Shell 0.1%