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

JSON pretty print option

Open seregamorph opened this issue 1 year ago • 0 comments

Change

Add System property "com.autonomousapps.pretty-json" to do pretty print in JSON task outputs.

Motivation

Tasks produce (mostly) JSON outputs which are friendly for text comparison between executions - either with changes in set of project dependencies or in the logic of the dependency-analysis plugin itself. But by default they are single-line JSONs, hence we need an options to pretty-print (a.k.a. indent) it.

Note: the task outputs are reproducible (once this is merged https://github.com/autonomousapps/dependency-analysis-gradle-plugin/pull/1202 )

seregamorph avatar Jun 19 '24 15:06 seregamorph