dependency configuration
The name in front of a Gradle dependency, such as testImplementation, that says where and when that dependency is used.
In more detail
implementation dependencies are used to compile and run the main code; testImplementation ones only for tests; testRuntimeOnly ones are present only while tests run. They play the role Maven scopes play.
Examples
testImplementation("org.assertj:assertj-core:3.27.7")testRuntimeOnly("org.junit.platform:junit-platform-launcher")Related terms
- dependency scope — A Maven setting on a dependency that says when it is on the class path, such as only while compiling and running tests.
- Gradle build script — The file, usually build.gradle.kts written in Kotlin, that configures a Gradle build: plugins, coordinates, toolchain, repositories and dependencies.
Taught in
- The Toolchain: Gradle — Modern Java: Virtual Threads & High-Throughput Services