abstract fun addListener(listener: Any)(source)

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

The following listener types can be used, but are not supported when configuration caching is enabled. Their usage is deprecated and adding a listener of these types become an error in a future Gradle version:



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