mfuerstenau / gradle-buildconfig-plugin

A BuildConfig plugin for Gradle java projects
MIT License
173 stars 20 forks source link

Pretty printing build info #25

Open jfcameron opened 6 years ago

jfcameron commented 6 years ago

Feature suggestion

Purpose: to conveniently print build info fields to standard out, to file, render as JSON and send over network etc.

Implementation: static public function "Pretty Print" with lambda parameter of form: (final Field[]) -> void. Lambda allows for user-defined print behaviour. Additionally offer 1 overload: parameterless, which simply writes all fields to standard out as "${field.name}: ${field.value}\n"...