Subproject in nested directory

Is it possible in directory structure like

  • root
    • a
      • b
    • settings.gradle

to add directory b as a subproject but don’t add directory a as a subproject? Documentation of Settings#include explicitly mentions that it adds parent directories as projects as well

As an example, the path a:b adds a project with path :a:b , name b and project directory $rootDir/a/b . It also adds the a project with path :a , name a and project directory $rootDir/a , if it does not exist already.

The include docs provide an example of that for baz.

include 'b'
project(':b').projectDir = file('a/b')