For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

GradleScript

interface GradleScript(source)

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

Since

1.8

Functions

Link copied to clipboard
@Nullable
abstract fun getSourceFile(): @Nullable File
Returns the source file for this script, or null if this script has no associated source file.