Skip to content

Compatibility with Gradle TestKitopensavvy.prepared.compat.gradlesettingsGroovy

settingsGroovy


suspend fun Gradle.settingsGroovy(text: String)

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

Example

test("Create a groovy settings file") {
    gradle.settingsGroovy("""
        println "Loading the settings…"
    """.trimIndent())
}

See also


val Gradle.settingsGroovy: Prepared<Path>

Accessor for the `settings.gradle` file.

Example

test("Access the groovy settings file") {
    println(gradle.settingsGroovy())
}

See also