Exemplo n.º 1
0
 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()));
 }
Exemplo n.º 2
0
 protected ScriptHandler createScriptHandler() {
   ScriptHandlerFactory factory =
       new DefaultScriptHandlerFactory(
           get(DependencyManagementServices.class),
           get(FileResolver.class),
           get(DependencyMetaDataProvider.class));
   return factory.create(project.getBuildScriptSource(), project.getClassLoaderScope(), project);
 }