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
- Gradle — A build tool whose build is a script in a programming language and a graph of tasks that are skipped when their inputs have not changed.
- Kotlin — A programming language that runs on the JVM and is used for Gradle build scripts and Android apps.
- plugin — An add-on that extends a tool with extra features, such as the Maven and Gradle plugins that compile, test and package Java code.
- toolchain — A set of programs that work together to get one job done, such as building and running software.
- dependency configuration — The name in front of a Gradle dependency, such as testImplementation, that says where and when that dependency is used.
Taught in
- The Toolchain: Gradle — Modern Java: Virtual Threads & High-Throughput Services