reportsDestination

@DelicateMetroGradleApi(message = "This should only be used for debugging purposes and is not intended to be always enabled.")
val reportsDestination: DirectoryProperty(source)

If set, the Metro compiler will dump verbose report diagnostics about resolved dependency graphs to the given destination. Outputs are per-compilation granularity (i.e. build/metro/main/...).

This behaves similar to the compose-compiler's option of the same name.

This also enables the generateMetroGraphMetadata task, which will dump JSON representations of all graphs per compilation in this project.

This enables a nontrivial amount of logging and overhead and should only be used for debugging.

Optionally, you can specify a metro.reportsDestination gradle property whose value is a relative path from the project's build directory.