api / org.gradle.api.tasks / GradleBuild / getBuildFile

getBuildFile

@Optional @InputFile open fun getBuildFile(): File

Returns the build file that should be used for this build. Defaults to {@value * org.gradle.api.Project#DEFAULT_BUILD_FILE} in the project directory.

Return
The build file. May be null.