build-time-tracker
Gradle plugin that prints the time taken by the tasks in a build. If you like it, consider becoming a .
== Build time summary ==
:commons:extractIncludeProto | 4S | 14% | ████
:commons:compileKotlin | 2S | 7% | ██
:commons:compileJava | 6S | 21% | ██████
:service:compileKotlin | 1S | 4% | █
:webapp:compileKotlin | 1S | 4% | █
:webapp:dockerBuildImage | 4S | 14% | ████
:webapp:dockerPushImage | 4S | 14% | ████
See Gradle Plugin Portal for usage instructions.
You can customize the plugin as follows:
buildTimeTracker {
barPosition = BarPosition.TRAILING or BarPosition.LEADING, default is TRAILING
// Deprecated: Will be removed in v5, use sortBy
sort = false or true, default is false
sortBy = Sort.ASC, Sort.DESC, or Sort.NONE, default is NONE
output = Output.CONSOLE or Output.CSV, default is CONSOLE
maxWidth = 120, default is 80
minTaskDuration = Duration.ofSeconds(1), don't show tasks that take less than a second
showBars = false or true, default is true
reportsDir = only relevant if output = CSV, default $buildDir/reports/buildTimeTracker
}
If you are using Kotlin build script, set the configuration properties using
property.set()
method.
BarPosition
,Sort
, andOutput
are enums, so, they need to be imported or fully-qualified withcom.asarkar.gradle.buildtimetracker
.
Minimum Requirements
- Java 11
- Gradle 6.1
Contributing
This project is a volunteer effort. You are welcome to send pull requests, ask questions, or create issues.
Code of Conduct
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code.
License
Copyright 2022 Abhijit Sarkar - Released under Apache License v2.0.