gradle
8.4

# getConvention

@Internal
abstract fun getConvention(): Convention(source)

### Deprecated

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.

#### Deprecated

The concept of conventions is deprecated. Use extensions if possible.

#### See also

ExtensionAware