iurysza / module-graph

A Gradle Plugin for visualizing your project's structure, powered by mermaidjs

Home Page:https://plugins.gradle.org/plugin/dev.iurysouza.modulegraph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ignore certain modules

raamcosta opened this issue Β· comments

πŸ’‘ Describe the solution you'd like

It would be nice to be able to ignore certain modules.
My use case for this is that we have a "test-fixtures" module which is depended on from almost all other modules and also depends on a lot of modules. It is only used for testing, so I don't really care about it tbh, and it makes the graph super uggly and unnecessarily complex.

I guess another way of achieving it is if we could choose certain buildTypes (or similar) to ignore. For example I can say I want to ignore all dependenceis like testImplementation, androidTestImplementation, debugImplementation etc. Then we could also not show modules that after these rules are not depended on by any other maybe πŸ€”

🀚 Do you want to develop this feature yourself?

Same as the other feature request, I could take a look if I have some time, but right now it's really hard.

Thank you for doing this plugin btw, it's really a good source for documentation of the project that is in a good format for VCS (mermaid) and is always up to date! πŸ‘

Hey! This is something that I've been meaning to do. The idea I had was to use a regex pattern to either exclude or include modules. #16

I've got a working POC, but I haven't wrapped up its development yet. You can expect something addressing this real soon.

I also needed this feature, so I gave it a try at #25.
Just let me hear your opinion.