Need a way to do build of graph of projects

I need a way to do build of graph of projects. Not a tree of projects as described in “module builds” but a graph as described in http://stackoverflow.com/questions/13195767/how-to-make-maven-build-dependent-project

This is a good reason to migrate from Maven and also a thing needed by people developing many projects.

To implement this there is a need to add ability to include one script file into another easily modifying script context.

It is already a graph of projects connected by project dependencies. The project hierarchy is just a way to simplify configuration and execution.