Skip to content

Instantly share code, notes, and snippets.

@cmfsotelo
Forked from dmytrodanylyk/description.md
Created May 6, 2019 08:20
Show Gist options
  • Save cmfsotelo/c57bf62b4fc9e9a657ea2bd098a36390 to your computer and use it in GitHub Desktop.
Save cmfsotelo/c57bf62b4fc9e9a657ea2bd098a36390 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