For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

ancestors

Iterate over all ancestors of this path, starting with the root path (if absolute) or the first segment (if relative) and not including this path.

For example, the path :a:b:c has the ancestors :, :a, and :a:b. The path a:b:c has the ancestors a, and a:b.

Since

8.13