api / org.gradle.api / Project / getProject

getProject

abstract fun getProject(): Project

Returns this project. This method is useful in build files to explicitly access project properties and methods. For example, using project.name can express your intent better than using name. This method also allows you to access project properties from a scope where the property may be hidden, such as, for example, from a method or closure.

Return
This project. Never returns null.