Compatibility with Gradle TestKit • opensavvy.prepared.compat.gradle • settingsGroovy
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.