Declares that a project has an execution dependency on each of its child projects gradle

How can i declares that a project has an execution dependency on each of its child projects gradle as method “dependsOnChildren()” of Project class is deprecated after version 1.12.

You can’t, as the method has been removed. Instead, declare individual task dependencies where needed.