buildGroovy
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())
}
Content copied to clipboard
See also
Accessor for the build.gradle
file.
Example
test("Access the groovy build file") {
println(gradle.project("foo").buildGroovy())
}
Content copied to clipboard