Gradle build script

The file, usually build.gradle.kts written in Kotlin, that configures a Gradle build: plugins, coordinates, toolchain, repositories and dependencies.

In more detail

Most of a build script finds objects that plugins created and sets properties on them, rather than listing steps. Because it is real code, editors offer types and completion. The course script is about twenty lines long.

Examples

group = "com.example"
repositories { mavenCentral() }

Related terms

Taught in

References