Compatibility with Gradle TestKit • opensavvy.prepared.compat.gradle • Gradle
Gradle¶
Properties¶
dir¶
A temporary directory unique for each test, in which the Gradle files are created.
properties¶
val Gradle.properties: Prepared<Path>
Accessor for the gradle.properties file.
rootProject¶
val rootProject: Project
Accessor for the files of the root project.
settingsGroovy¶
val Gradle.settingsGroovy: Prepared<Path>
Accessor for the settings.gradle file.
settingsKts¶
val Gradle.settingsKts: Prepared<Path>
Accessor for the settings.gradle.kts file.
Functions¶
project¶
Accessor for the files of a project, given its path.
properties¶
suspend fun Gradle.properties(text: String)
Helper function to write the gradle.properties file.
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.