private Project evaluationDependsOn(DefaultProject projectToEvaluate) { if (projectToEvaluate.getState().getExecuting()) { throw new CircularReferenceException(String.format("Circular referencing during evaluation for %s.", projectToEvaluate)); } return projectToEvaluate.evaluate(); }