예제 #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()));
 }
예제 #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);
 }