settingsGroovy

suspend fun Gradle.settingsGroovy(text: String)(source)

Helper function to write the settings.gradle file.

Example

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

See also

Kotlin equivalent

Build script file


Accessor for the settings.gradle file.

Example

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

See also

Kotlin equivalent

Build script file