Skip to content

Instantly share code, notes, and snippets.

@AnwarShahriar
Forked from dmytrodanylyk/description.md
Created May 6, 2019 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnwarShahriar/9734a27a5f4273a3da403b02d5649260 to your computer and use it in GitHub Desktop.
Save AnwarShahriar/9734a27a5f4273a3da403b02d5649260 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