Gradle Plugin for reporting build time results into Tracks system.
Configure plugin in build.gradle
file:
plugins {
id "io.github.wzieba.tracks.plugin" version "latest_tag"
}
tracks {
automatticProject.set(io.github.wzieba.tracks.plugin.TracksExtension.AutomatticProject.WooCommerce)
}
Property | Default | Required? | Description |
---|---|---|---|
automatticProject | null | yes | Project that will determine event name |
enabled | null | no | Enable plugin |
obfuscateUsername | false | no | If true, then username will be SHA-1 obfuscated |
After each build you should see
✅ Build time report of 4m 8s has been received by Apps Metrics.
which confirms received report.
This plugin might report different data to what Gradle logs at the end of a build.
The reason is that Gradle log filters out lifecycle tasks, while this plugin, cannot do this as it uses configuration-cache compatible OperationCompletionListener
.
This plugin uses BuildStartedTime
service, which is precisely what Gradle uses to log build duration at the end of the build.
The difference is where end of the build is defined - in this plugin, with FlowAction
. The difference is minor and safe to ignore.