Interface DependencyResolver

  • All Known Implementing Classes:
    DependencyResolverImpl

    public interface DependencyResolver
    Author:
    Pavel.Sher Date: 08.02.2007
    • Method Detail

      • resolve

        @NotNull
        ResolutionErrors resolve​(@NotNull
                                 String buildTypeId,
                                 @NotNull
                                 File workingDir,
                                 @NotNull
                                 List<ArtifactDependency> dependencies,
                                 @NotNull
                                 DependencyResolverContext context)
        Resolves artifact dependencies for specified build. All build dependencies will be downloaded
        Parameters:
        buildTypeId - (unused)
        workingDir - directory where resolution is performed
        dependencies - dependencies to resolve
        context - all other information about artifacts source
        Returns:
        a ResolutionErrors object which describes error occurred during the resolve process
      • resolveCache

        @NotNull
        default ResolutionErrors resolveCache​(@NotNull
                                              String buildTypeId,
                                              @NotNull
                                              File workingDir,
                                              @NotNull
                                              List<ArtifactDependency> dependencies,
                                              @NotNull
                                              DependencyResolverContext context)
                                       throws ResolvingFailedException
        Resolves build cache (as dependencies) for specified build. All build dependencies will be downloaded
        Parameters:
        buildTypeId - id of build configuration for which resolving is performed
        workingDir - directory where resolution is performed
        dependencies - dependencies to resolve
        context - all other information about artifacts source
        Throws:
        ResolvingFailedException - if resolving failed
      • interrupt

        void interrupt()
        Interrupt current resolution process. Method implementation should be thread safe.