fileResolver = services.get(FileResolver.class);
scriptPluginFactory = services.get(ScriptPluginFactory.class);
scriptHandlerFactory = services.get(ScriptHandlerFactory.class);
buildListenerBroadcast = listenerManager.createAnonymousBroadcaster(BuildListener.class);
projectEvaluationListenerBroadcast = listenerManager.createAnonymousBroadcaster(ProjectEvaluationListener.class);
buildListenerBroadcast.add(new BuildAdapter() {
@Override
public void projectsLoaded(Gradle gradle) {
rootProjectActions.execute(rootProject);
rootProjectActions = null;
}