Compatibility with Gradle TestKit • opensavvy.prepared.compat.gradle • buildGroovy
buildGroovy¶
suspend fun Project.buildGroovy(text: String):
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¶
-
buildKts
Kotlin equivalent -
settingsGroovy
Settings file -
Gradle.project
Select the project
val Project.buildGroovy:
Accessor for the build.gradle
file.
Example¶
See also¶
-
buildKts
Kotlin equivalent -
settingsGroovy
Settings file -
Gradle.project
Select the project