Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 968 Bytes

README.md

File metadata and controls

39 lines (31 loc) · 968 Bytes

Gradle Build Timer Plugin

A Gradle plugin which reports timings of a project build and individual project tasks. See what tasks take the longest to run:

Task timings over threshold:
    128ms  :app:mergeDebugAssets
   1099ms  :app:mergeDebugResources
    788ms  :app:processDebugResources
   5000ms  :app:compileDebugJava
  13757ms  :app:proguardDebug
  15965ms  :app:dexDebug
   3449ms  :app:packageDebug
    158ms  :app:zipalignDebug

Usage

Add the plugin to your buildscript's dependencies section:

classpath 'net.jokubasdargis.buildtimer:gradle-plugin:0.3.0'

Apply the build-timer plugin:

apply plugin: 'net.jokubasdargis.build-timer'

Optionally configure the plugin:

buildTimer {
    reportAbove = 100L // The lowest time threshold (in ms) this plugin should report above, default is 50L
    sort = 'asc' // Sort timings by ms, possible values: 'none', 'asc', 'desc'
}