gradle
8.2

# getConvention

@Internal
abstract fun getConvention(): Convention

### 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