api / org.gradle.api / Task / getProject

getProject

@Internal abstract fun getProject(): Project

Returns the Project which this task belongs to.

Return
The project this task belongs to. Never returns null.