public void projectsLoaded(Gradle gradle) { ProjectInternal projectInternal = (ProjectInternal) gradle.getRootProject(); logger.info( String.format( "Projects loaded. Root project using %s.", projectInternal.getBuildScriptSource().getDisplayName())); logger.info(String.format("Included projects: %s", projectInternal.getAllprojects())); }
protected ScriptHandler createScriptHandler() { ScriptHandlerFactory factory = new DefaultScriptHandlerFactory( get(DependencyManagementServices.class), get(FileResolver.class), get(DependencyMetaDataProvider.class)); return factory.create(project.getBuildScriptSource(), project.getClassLoaderScope(), project); }