dependency-analysis-gradle-plugin icon indicating copy to clipboard operation
dependency-analysis-gradle-plugin copied to clipboard

Flag to print reasons along with advices in build-health-report.txt

Open mitasov-ra opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. When going through advises in build-health-report.txt I need to call reason --id <module> almost for each module as I need to understand which dependencies I really need to make api and which deserve compileOnly (provided scope).

Describe the solution you'd like It would be very helpful to have some king of flag to enable more verbose explanations why I see an advice right in place in build-health-report.txt report.

Additional context Along with #643 this feature would make this plugin a bazillion times more useful!

mitasov-ra avatar Mar 06 '23 14:03 mitasov-ra

Thanks for the issue. I think that would be incredibly verbose. Would you really want the reason for every piece of advice? What about an enhancement on the reason task itself to print all the reasons, rather than something that happens alongside buildHealth?

autonomousapps avatar Apr 21 '23 15:04 autonomousapps

For me it doesn't really matter where this enhancement would land - in buildHealth task or in reason. When I open a "bad" project, I need to get a report with all the advices and all the reasons, and walk it through once to fix everything.

It's always the same story, I see the advice and immediately I ask myself "tf this dependency from??" XD

So yeah, I think I really want to see the reason for every piece of advice =)

mitasov-ra avatar May 03 '23 13:05 mitasov-ra