Oct 23, 2020 Declaring dependencies. To add a dependency on Room, you must add the Google Maven repository to your project. Read Google's Maven repository for more information. Dependencies for Room include testing Room migrations and Room RxJava. Add the dependencies for the artifacts you need in the build.gradle file for your app or module. The Gradle plugin that finds unused dependencies, declared and transitive is com.github.nullstress.dependency-analysis But its latest version 1.0.3 is created 23 December 2014. After that there aren't any updates. N.B: Many of our engineers are being confused about this plugin as they updated only the version number, nothing else.

Gradle unused dependencies for minecraft
  • Status:Resolved
  • Affects Version/s:None

Maven metadata allows for 'optional' dependencies, which is quite important for frameworks like Spring, where we must compile against certain artifacts, but use by end users is optional (i.e. if they don't use particular classes, they don't need the dependency).

Ivy allows for expressing this, Maven allows for expressing this.

Gradle unused dependencies for minecraftGradle find unused dependenciesIntellij gradle remove unused dependenciesUnused

What we need is something like:

And for that to be reflected in the generated pom.xml as:

Intellij Gradle Remove Unused Dependencies

See also: http://gradle.1045684.n5.nabble.com/Marking-Maven-Dependencies-as-optional-td1432582.html

Gradle Unused Dependencies Download

Votes:
57Vote for this issue
Watchers:
54Start watching this issue