What is the most elegant way to track the execution times on how long a task took in a gradle build script? In an optimal case log the time directly same or next line to the tas
I created a plugin since passy/build-time-tracker-plugin is no longer actively maintained. Mine prints ASCII bar charts too, and comes with customization options.
https://github.com/asarkar/build-time-tracker
== Build time summary ==
:commons:extractIncludeProto | 4.000s | 14% | ████
:commons:compileKotlin | 2.000s | 7% | ██
:commons:compileJava | 6.000s | 21% | ██████
:service-client:compileKotlin | 1.000s | 4% | █
:webapp:compileKotlin | 1.000s | 4% | █
:webapp:dockerBuildImage | 4.000s | 14% | ████
:webapp:dockerPushImage | 4.000s | 14% | ████