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

Add flag to silent the console output for the ProjectHealthTask

Open rohilchodankar opened this issue 1 year ago • 2 comments
trafficstars

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

rohilchodankar avatar Jun 21 '24 15:06 rohilchodankar

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?

autonomousapps avatar Jun 25 '24 17:06 autonomousapps

Yeah that sounds good. Thanks

rohilchodankar avatar Jun 25 '24 17:06 rohilchodankar