Parent and child projects in same directory adjacent to each other

In a multi module gradle project, is it possible to have parent and child projects adjacent to each other rather than having child projects under parent? If it’s possible, how to declare child projects in settings.gradle and how to define the dependency of one child project in another - compile project ‘… /child2’

What you are looking for is a flat hierarchy multi-project build. You can find an example in this repository. Please refer to this post for more information.