project

Accessor for the files of a project, given its path.

Example

Create the modules/foo/build.gradle file:

test("Configure the :modules:foo project") {
gradle.project("modules/foo").buildGroovy("""
println "Configuring the project!"
""".trimIndent())
}

See also

Access the root project

Execute the test and check the outputs