buildGroovy

suspend fun Project.buildGroovy(text: String): <Error class: unknown class>(source)

Helper function to write the build.gradle file.

Example

test("Create a groovy build file") {
gradle.project("foo").buildGroovy("""
println "Loading the project :foo…"
""".trimIndent())
}

See also

Kotlin equivalent

Settings file

Select the project


val Project.buildGroovy: <Error class: unknown class>(source)

Accessor for the build.gradle file.

Example

test("Access the groovy build file") {
println(gradle.project("foo").buildGroovy())
}

See also

Kotlin equivalent

Settings file

Select the project