api / org.gradle.api / Task / getConvention

getConvention

@Internal abstract fun getConvention(): Convention

Returns the Convention object for this task. A Plugin can use the convention object to contribute properties and methods to this task.

Return
The convention object. Never returns null.