api / org.gradle.api.invocation / Gradle / addListener

addListener

abstract fun addListener(listener: Any): Unit

Adds the given listener to this build. The listener may implement any of the given listener interfaces:

Parameters

listener - The listener to add. Does nothing if this listener has already been added.