Compatibility with Gradle TestKit • opensavvy.prepared.compat.gradle • Gradle • rootProject
rootProject¶
val rootProject: Project
Accessor for the files of the root project.
Example¶
Create the root build.gradle.kts
file:
test("Create the root build.gradle.kts file") {
gradle.rootProject.buildKts("""
println("Configuring the project")
""".trimIndent()
}
See also¶
-
Gradle.projectAccess another project
-
Gradle.runnerExecute the test and check the outputs