api / org.gradle.tooling.model.gradle / GradleScript

GradleScript

interface GradleScript

Represents a Gradle script. A Gradle script may be a build script, settings script or initialization script.

Since
1.8

Functions

getSourceFile

abstract fun getSourceFile(): File

Returns the source file for this script, or null if this script has no associated source file. If this method returns a non-null value, the given source file will exist.