Skip to content

Instantly share code, notes, and snippets.

@ggrell
Forked from dmytrodanylyk/description.md
Created January 23, 2020 01:48
Show Gist options
  • Save ggrell/26c76a9aa01f7a4ba7299b0fd3540eb7 to your computer and use it in GitHub Desktop.
Save ggrell/26c76a9aa01f7a4ba7299b0fd3540eb7 to your computer and use it in GitHub Desktop.
Where this dependency comes from?

Did you ever have android build failed​ issue because of dependency resolution?

… or you were curious where all these old rxjava dependencies come from?

You can pretty easy track the module causing issues via following gradle command.

gradlew :root-module:dependencyInsight \
--configuration debugRuntimeClasspath \ // or debugCompileClasspath
--dependency io.reactivex:rxjava:1.1.0 > dependencies.txt // saves result to 'dependencies.txt' file

Output of dependencies.txt

io.reactivex:rxjava:1.1.0 -> 1.3.8
\--- com.jakewharton.rxbinding:rxbinding:0.4.0
     \--- com.jakewharton.rxbinding:rxbinding-support-v4:0.4.0
          \--- project :my-module-1
               +--- debugRuntimeClasspath

You can use any combination of maven groupId, artifactId and version.

// dependency with specific version
--dependency io.reactivex:rxjava:1.1.0

// dependency with any version
--dependency io.reactivex:rxjava

// dependency with specific groupId
--dependency io.reactivex:rxjava
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment