api / org.gradle / BuildListener

BuildListener

interface BuildListener

A BuildListener is notified of the major lifecycle events as a build is executed.

See Also
org.gradle.api.invocation.Gradle#addListener(Object)

Functions

buildFinished

abstract fun buildFinished(result: BuildResult): Unit

Called when the build is completed. All selected tasks have been executed.

buildStarted

abstract fun buildStarted(gradle: Gradle): Unit

Called when the build is started.

projectsEvaluated

abstract fun projectsEvaluated(gradle: Gradle): Unit

Called when all projects for the build have been evaluated. The project objects are fully configured and are ready to use to populate the task graph.

projectsLoaded

abstract fun projectsLoaded(gradle: Gradle): Unit

Called when the projects for the build have been created from the settings. None of the projects have been evaluated.

settingsEvaluated

abstract fun settingsEvaluated(settings: Settings): Unit

Called when the build settings have been loaded and evaluated. The settings object is fully configured and is ready to use to load the build projects.

Inheritors

BuildAdapter

open class BuildAdapter : BuildListener

A BuildListener adapter class for receiving build events. The methods in this class are empty. This class exists as convenience for creating listener objects.