Gradle

class Gradle(source)

Control center for Gradle TestKit. See gradle.

Properties

Link copied to clipboard

A temporary directory unique for each test, in which the Gradle files are created.

Link copied to clipboard

Accessor for the gradle.properties file.

Link copied to clipboard

Accessor for the files of the root project.

Link copied to clipboard

Accessor for the settings.gradle file.

Link copied to clipboard

Accessor for the settings.gradle.kts file.

Functions

Link copied to clipboard
fun project(path: String): Project

Accessor for the files of a project, given its path.

Link copied to clipboard
suspend fun Gradle.properties(text: String)

Helper function to write the gradle.properties file.

Link copied to clipboard
suspend fun runner(): GradleRunner

Instantiates a GradleRunner in dir.

Link copied to clipboard
suspend fun Gradle.settingsGroovy(text: String)

Helper function to write the settings.gradle file.

Link copied to clipboard
suspend fun Gradle.settingsKts(text: String)

Helper function to write the settings.gradle.kts file.