Comments (5)
It's default is actually "wherever your ModuleAdapter is generated"
which seems to differ depending on your maven configuration.
When I do
<dependencies>
<dependency>
<groupId>com.squareup</groupId>
<artifactId>dagger-compiler</artifactId>
<version>some-version</version>
<optional>true</optional>
</dependency>
</dependencies>
then it puts my generated code into target/generated-sources/annotation
and the .dot file is beside the module adapter.
On 11 Feb 2013, at 16:39, James Wald wrote:
Jesse's talk at QCon talk touched on a really great feature that
visualizes the DAG. Maybe it's just me, but I didn't know I was
looking for adot
file nor did I know where the mythical file was
saved. After looking through the code I was able to track it down.
It would be helpful to showcase this neat feature on the website.By default, the dot file is saved as:
target/classes/com/yourapp/YourappModule.dot
You can view this file with GraphViz here
http://www.graphviz.org/Download..php.
Reply to this email directly or view it on GitHub:
#158
from dagger.
Pointing this out on the website is a good idea. We should also clean it up some; currently the graphs could use a little love.
from dagger.
This is a very cool feature, is there a .dot file per module? Or one merged graph starting from the root (even more awesome)?
EDIT: I tried for fun to merge the dot files with the following command:
gvpack -n GLarmModule.dot ServicesModule.dot XmlServiceModule.dot
But no luck. Still, it's good to have them especially in large projects.
from dagger.
@arichiardi if you want to see a merged graph, just create a module that includes all of the modules you want in your graph. The graph will include everything.
from dagger.
Yeah you are right, currently I have:
GLarmModule includes ServiceModule includes XmlServiceModule
But dotty (graphviz dispaly tool) doesn't really show all the dependencies. Probably some branch is not there because it is not used in the code (I am in "developing" mode and some feature is commented out).
from dagger.
Related Issues (20)
- java.lang.NoClassDefFoundError: dagger.internal.Preconditions HOT 2
- java.lang.NoClassDefFoundError: dagger.internal.Preconditions HOT 1
- android.app.Application does not implement dagger.android.HasActivityInjector HOT 3
- --
- Android Context HOT 1
- Subcomponent inside subcomponent HOT 1
- Error when a component is trying to include bindings with different scopes could be more informative HOT 1
- Constructor injection cannot find symbol method inject members dagger2 2.14 HOT 1
- how can i run the example of CoffeeApp.java HOT 1
- Why do Singletons need an empty default constructor? HOT 2
- dagger-compiler
- dagger.android.DispatchingAndroidInjector cannot be provided without an @Provides HOT 1
- 每次修改完java代码都需要clean项目 才能运行, HOT 1
- did u consider this kind of case: ChildFragment needs to reuse ParentFragment's object instead of creating a new one。hilt may not support this kind of case
- duplicate Nullable HOT 2
- cannot generate
- Support extending base builder classes HOT 2
- The Hilt Android Gradle plugin is applied but no com.google.dagger:hilt-android dependency was found. HOT 1
- Issue with enableAggregatingTask flag / AGP 7.0 / oss-licenses HOT 1
- after add hilt { enableAggregatingTask = true } dependencies tasks faild
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dagger.