Let's say I have a multi-module gradle project with two gradle modules, :A and :B.
.
├── :A
│ └── build.gradle
├── :B
│ └── build.gradle
├── build.gradle (plugin applied here)
└── settings.gradle
:Ahas no dependencies:Bhas a dependency on:A
I want to get the following information.
- a list of the names of each module in project:
:A,:B - list of module names that each module is dependant on. For
:A, this would be an empty list, and for:Bit would belistOf(":A")(single element list)
How can I get this information in the context of a custom gradle plugin that's applied to the root gradle module?
The use case for this is to generate a visual representation of how each module is connected in a multi-module project