Hello, does anyone know a way to find which module...
# gradle
g
Hello, does anyone know a way to find which modules depend on a given module? For example, for a project with dependencies laid out like this:
Copy code
a -- b
  \- c
b -- c
c -- d
I´m trying to find a way to find which modules depend on
d
, in this case
c
. If I wanted to know about
c
,
a
and
b
. Ultimately, being able to do this recursively would be convenient. Since, transitively, every module would depend on
d
.
m
./gradlew :module:dependencies
should do it
Ah wait, you want the opposite, right?
g
Yep, the opposite
m
I mean the information is still there but harder to parse
g
I´m holding on to it as a last resort at least in a first moment.
m
IntelliJ has a "Analyze -> Module dependencies" thing but that might be ultimate only
Seems like that would do
g
Will have a look into that plugin. One thing that kind of killed my own first attempt at that is that a task I created would run before all the modules had been configured, which would make the report very limited
m
Yea, you can do a number of
afterEvaluate {}
runs but that's flaky...
g
m
Maybe build scans are worth checking too
v
Opposite of
dependencies
? That would then be
dependencyInsight
?
❤️ 2