Ejemplo n.º 1
0
 private Set<GradleLibrary> getLibrariesForFileDependencies(
     Configuration configuration, LibraryScope scope) {
   Set<GradleLibrary> libraries = new LinkedHashSet<GradleLibrary>();
   for (Dependency dependency : configuration.getIncoming().getDependencies()) {
     if (dependency instanceof FileCollectionDependency) {
       FileCollectionDependency fileDependency = (FileCollectionDependency) dependency;
       for (File file : fileDependency.resolve()) {
         libraries.add(new GradleLibrary(fileDependency.getGroup(), file, scope));
       }
     } else if (dependency instanceof ProjectDependency) {
       ProjectDependency projectDependency = (ProjectDependency) dependency;
       libraries.addAll(
           getLibrariesForFileDependencies(projectDependency.getProjectConfiguration(), scope));
     }
   }
   return libraries;
 }
Ejemplo n.º 2
0
 public DependencyBank() {
   for (ProjectDependency projectDep : ProjectDependency.values()) {
     Dependency dependency =
         new Dependency(
             projectDep.name(),
             projectDep.getGwtInherits(),
             projectDep.getDependencies(ProjectType.CORE),
             projectDep.getDependencies(ProjectType.DESKTOP),
             projectDep.getDependencies(ProjectType.ANDROID),
             projectDep.getDependencies(ProjectType.IOS),
             projectDep.getDependencies(ProjectType.HTML));
     gdxDependencies.put(projectDep, dependency);
   }
 }
Ejemplo n.º 3
0
 public DependencyBank() {
   for (ProjectDependency projectDep : ProjectDependency.values()) {
     Dependency dependency =
         new Dependency(
             projectDep.name(),
             projectDep.getDependencies(ProjectType.CORE),
             projectDep.getDependencies(ProjectType.DESKTOP),
             projectDep.getDependencies(ProjectType.ANDROID),
             projectDep.getDependencies(ProjectType.IOS),
             projectDep.getDependencies(ProjectType.HTML));
     gdxDependencies.put(projectDep, dependency);
   }
   gwtInheritances.put(
       ProjectDependency.GDX, new String[] {"com.badlogic.gdx.backends.gdx_backends_gwt"});
   gwtInheritances.put(
       ProjectDependency.CONTROLLERS,
       new String[] {"com.badlogic.gdx.controllers.controllers-gwt"});
   gwtInheritances.put(
       ProjectDependency.BOX2D, new String[] {"com.badlogic.gdx.physics.box2d.box2d-gwt"});
   gwtInheritances.put(ProjectDependency.BOX2DLIGHTS, new String[] {"Box2DLights"});
 }