dir

The subdirectory of Gradle.dir in which this project is located.

Example

val app by prepared { gradle.project("app") }
val main = app.dir / "src" / "main" / "kotlin" / "main.kt"

test("Print the path of the main file") {
println(main())
}