Skip to content

A Gradle plugin which reports timings of a project build and individual project tasks

Notifications You must be signed in to change notification settings

DevenLu/gradle-build-timer-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.2.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'
}

About

A Gradle plugin which reports timings of a project build and individual project tasks

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Groovy 100.0%