Skip to content

Instantly share code, notes, and snippets.

@dmytrodanylyk
Last active June 20, 2022 15:00
Show Gist options
  • Save dmytrodanylyk/4a4b2a86e0c4fc13802b97117c36e16a to your computer and use it in GitHub Desktop.
Save dmytrodanylyk/4a4b2a86e0c4fc13802b97117c36e16a 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