# getConvention

abstract fun getConvention(): Convention(source)

### Deprecated

Returns the org.gradle.api.plugins.Convention for this project.

You can access this property in your build file using `convention`. You can also access the properties and methods of the convention object as if they were properties and methods of this project. See here for more details

#### Return

The `Convention`. Never returns null.

#### Deprecated

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

#### See also

ExtensionAware