Compatibility with Gradle TestKit • opensavvy.prepared.compat.gradle • Gradle
Gradle¶
Properties¶
dir¶
val dir:
A temporary directory unique for each test, in which the Gradle files are created.
rootProject¶
val rootProject: Project
Accessor for the files of the root project.
settingsGroovy¶
val Gradle.settingsGroovy:
Accessor for the settings.gradle file.
settingsKts¶
val Gradle.settingsKts:
Accessor for the settings.gradle.kts file.
Functions¶
project¶
Accessor for the files of a project, given its path.
runner¶
suspend fun runner(): GradleRunner
Instantiates a GradleRunner in dir.
settingsGroovy¶
suspend fun Gradle.settingsGroovy(text: String):
Helper function to write the settings.gradle file.
settingsKts¶
suspend fun Gradle.settingsKts(text: String):
Helper function to write the settings.gradle.kts file.