File groups are a mechanism for grouping similar types of files within a project using file glob patterns or literal file paths. These groups are then used by tasks to calculate functionality like cache computation, affected files since last change, deterministic builds, and more.
Inheritance and merging
When a file group of the same name exists in both configuration files, the project-level group will override the workspace-level group, and all other workspace-level groups will be inherited as-is.
A primary scenario in which to define file groups at the project-level is when you want to
override file groups defined at the workspace-level. For example, say we want to override the
sources file group because our source folder is named "lib" and not "src", we would define our
file groups as followed.
# Overrides global
# Inherited as-is