rootProject
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()
}
Content copied to clipboard
See also
Access another project
Execute the test and check the outputs