Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can we create a graph of Dagger 2's dependencies?

How can I generate a visual graph with all the dependencies Dagger 2 manages?

Guice has Grapher. Does anyone know how to do something similar in Dagger 2?

like image 542
Bitcoin Cash - ADA enthusiast Avatar asked Nov 08 '16 00:11

Bitcoin Cash - ADA enthusiast


People also ask

How do you show a dependency on a graph?

View module dependencies diagramRight-click the selected item and from the context menu, select Diagram | Show Diagram (or press Ctrl+Alt+Shift+U ).

What is a Dagger graph?

Dagger evaluates file dependencies in a directed-acyclic-graph (DAG) like GNU make, but timestamps or hashes can be enabled per file. This allows you to use fast timestamp comparisons with large files, and hashing on small files.

What is a dependency injection graph?

Dependency Injection is the process of creating the static, stateless graph of service objects, where each service is parametrised by its dependencies. That's it!


1 Answers

I have built Scabbard using Dagger SPI that can generate Dagger 2 dependency graph during build time and later it link to @Component and @Subcomponent in IDE via IDE plugins.

Example:

Dagger 2 graph preview

like image 191
Arun Avatar answered Sep 23 '22 04:09

Arun