dependency-analysis-gradle-plugin
dependency-analysis-gradle-plugin copied to clipboard
Add flag to silent the console output for the ProjectHealthTask
Is your feature request related to a problem? Please describe.
We currently use the buildHealth task in our CI pipeline to identify unused dependencies. The flag dependency.analysis.print.build.health=false is used to prevent output from being printed to the console.
We would like to utilize the projectHealth task to run only on the modules that have been modified in the PR, which will help reduce execution time. However, I can't find a flag like dependency.analysis.print.build.health to suppress console logging for the ProjectHealthTask
Describe the solution you'd like
Add a flag similar to dependency.analysis.print.build.health to prevent console logs or use the same flag in the ProjectHealthTask task
The current flag exists because the output of buildHealth can be extremely large. The output of projectHealth is typically smaller. Still, I see no reason to not provide such a flag, but the default will probably be "on", even though the default for buildHealth is "off." Sound good?
Yeah that sounds good. Thanks