Mark project as Root (no upwards search)

Is there a way to mark a project as “root” so gradle doesn’t look to see if the current project is a subproject? I need this for an integration test I’m writing.

I know about the -u param - but I’m looking for a way to mark the build.gradle itself as a root.

you can add an empty settings.gradle file in the working directory of the integration test