I have a project (actually, a multi-project) where the inputs and outputs are connected through RegularFileProperty
s. This works great to sequence my tasks, even in parallel.
I’d really like to be able to generate some sort of dependency graph, so that we can better understand the relationship between the tasks (and projects). However, I don’t see any way to do that. The dependencies
task doesn’t report on the dependencies between the tasks, as I’ve specified them. Even if I take pains to use a dependencies
closure to also declare my dependencies that way (as FileCollection
s), the dependencies
task doesn’t report anything; it seems that the dependencies
task doesn’t consider FileCollection
s when printing its report.
Basically, I’m asking to consider the consumer and producer example from the official Gradle documentation here: https://docs.gradle.org/current/userguide/lazy_configuration.html#sec:working_with_task_dependencies_in_lazy_properties
In that simple example, what can be done to be able to show the relationship between the consumer
and producer
tasks?