/**
* Bad, internal-API-dependent code that works around the issue of 'afterEvaluated' not being called
*/
private static void callAfterEvaluated(Project project) {
ProjectStateInternal projectState = new ProjectStateInternal();
projectState.executed();
ProjectEvaluationListener evaluationListener = ((AbstractProject) project).getProjectEvaluationBroadcaster();
evaluationListener.afterEvaluate(project, projectState);
}