gradle-dependency-graph-generator-plugin icon indicating copy to clipboard operation
gradle-dependency-graph-generator-plugin copied to clipboard

Do you have example of project with custom graph generator?

Open st4ycool opened this issue 2 years ago • 6 comments

st4ycool avatar Aug 26 '22 10:08 st4ycool

Maybe @SimonMarquis has? Otherwise the README should be enough

vanniktech avatar Aug 26 '22 10:08 vanniktech

Well, instead of using dependencyGraphGenerator (or DependencyGraphGeneratorExtension in Kotlin), replace it with projectDependencyGraphGenerator (or ProjectDependencyGraphGeneratorExtension in Kotlin).

Both configurations shares a lot in common, then you can use your IDE autocomplete feature to browse through the options.

@vanniktech do you think a dedicated example should be added to the README?

SimonMarquis avatar Aug 26 '22 14:08 SimonMarquis

I think something like this is meant: https://github.com/vanniktech/gradle-dependency-graph-generator-plugin#generator-example but maybe more complex? I don't know. I'd say we have pretty good documentation

vanniktech avatar Aug 26 '22 15:08 vanniktech

Actually I never created gradle tasks in separate files with import, spent like 15 minutes but failed in the end. My goal was dependency graph of my feature modules...

st4ycool avatar Aug 27 '22 21:08 st4ycool

Just use the generateProjectDependencyGraph task for that

vanniktech avatar Aug 27 '22 21:08 vanniktech

Will try and be back

st4ycool avatar Aug 28 '22 09:08 st4ycool