Commits

Sebastian Sdorra committed 7446cc8 Merge

merge with branch issue-541

Comments (0)

Files changed (2)

scm-webapp/src/main/java/sonia/scm/plugin/AetherDependencyResolver.java

  */
 
 
+
 package sonia.scm.plugin;
 
 //~--- non-JDK imports --------------------------------------------------------
    *
    *
    * @param dependency
+   * @param dependencies
    *
    * @throws DependencyCollectionException
    * @throws DependencyResolutionException
    */
-  public void resolveLocalDependency(Dependency dependency)
+  public void resolveDependencies(Dependency dependency,
+    List<Dependency> dependencies)
     throws DependencyCollectionException, DependencyResolutionException
   {
-    CollectRequest request = new CollectRequest();
-
-    request.setRoot(dependency);
-    resolveDependency(request);
-  }
-
-  /**
-   * Method description
-   *
-   *
-   * @param dependency
-   *
-   * @throws DependencyCollectionException
-   * @throws DependencyResolutionException
-   */
-  public void resolveRemoteDependency(Dependency dependency)
-    throws DependencyCollectionException, DependencyResolutionException
-  {
-    resolveDependency(new CollectRequest(dependency, remoteRepositories));
+    resolveDependency(new CollectRequest(dependency, dependencies,
+      remoteRepositories));
   }
 
   /**

scm-webapp/src/main/java/sonia/scm/plugin/AetherPluginHandler.java

         new AetherDependencyResolver(configuration, repositorySystem,
           localRepository, remoteRepositories);
 
-      resolver.resolveRemoteDependency(dependency);
-
-      for (Dependency localDependency : localDependencies)
-      {
-        resolver.resolveLocalDependency(localDependency);
-      }
+      resolver.resolveDependencies(dependency, localDependencies);
 
       if (classpath == null)
       {