public class JarRepositoryManager
extends java.lang.Object
Constructor and Description |
---|
JarRepositoryManager() |
Modifier and Type | Method and Description |
---|---|
protected static java.util.Collection<RemoteRepositoryDescription> |
addDefaultsIfEmpty(Project project,
java.util.Collection<RemoteRepositoryDescription> repositories) |
static NewLibraryConfiguration |
chooseLibraryAndDownload(Project project,
java.lang.String initialFilter,
javax.swing.JComponent parentComponent) |
protected static NewLibraryConfiguration |
createNewLibraryConfiguration(RepositoryLibraryProperties props,
java.util.Collection<? extends OrderRoot> roots) |
static Promise<java.util.Collection<java.lang.String>> |
getAvailableVersions(Project project,
RepositoryLibraryDescription libraryDescription) |
static java.io.File |
getLocalRepositoryPath() |
static boolean |
hasRunningTasks() |
static Promise<java.util.List<OrderRoot>> |
loadDependenciesAsync(Project project,
JpsMavenRepositoryLibraryDescriptor desc,
java.util.Set<ArtifactKind> artifactKinds,
java.util.List<RemoteRepositoryDescription> repos,
java.lang.String copyTo) |
static Promise<java.util.List<OrderRoot>> |
loadDependenciesAsync(Project project,
RepositoryLibraryProperties libraryProps,
boolean loadSources,
boolean loadJavadoc,
java.util.List<RemoteRepositoryDescription> repos,
java.lang.String copyTo) |
static java.util.Collection<OrderRoot> |
loadDependenciesModal(Project project,
JpsMavenRepositoryLibraryDescriptor desc,
java.util.Set<ArtifactKind> artifactKinds,
java.util.Collection<RemoteRepositoryDescription> repositories,
java.lang.String copyTo) |
static java.util.Collection<OrderRoot> |
loadDependenciesModal(Project project,
RepositoryLibraryProperties libraryProps,
boolean loadSources,
boolean loadJavadoc,
java.lang.String copyTo,
java.util.Collection<RemoteRepositoryDescription> repositories) |
static java.util.List<OrderRoot> |
loadDependenciesSync(Project project,
JpsMavenRepositoryLibraryDescriptor desc,
java.util.Set<ArtifactKind> artifactKinds,
java.util.List<RemoteRepositoryDescription> repos,
java.lang.String copyTo) |
static ArtifactDependencyNode |
loadDependenciesTree(RepositoryLibraryDescription description,
java.lang.String version,
Project project) |
static NewLibraryConfiguration |
resolveAndDownload(Project project,
JpsMavenRepositoryLibraryDescriptor descriptor,
java.util.Set<ArtifactKind> kinds,
java.lang.String copyTo,
java.util.Collection<RemoteRepositoryDescription> repositories) |
static NewLibraryConfiguration |
resolveAndDownload(Project project,
java.lang.String coord,
boolean attachSources,
boolean attachJavaDoc,
boolean includeTransitiveDependencies,
java.lang.String copyTo,
java.util.Collection<RemoteRepositoryDescription> repositories) |
static void |
searchArtifacts(Project project,
java.lang.String coord,
java.util.function.Consumer<? super java.util.Collection<Pair<RepositoryArtifactDescription,RemoteRepositoryDescription>>> resultProcessor) |
static void |
searchArtifacts(Project project,
java.lang.String coord,
java.lang.String packaging,
java.util.function.Consumer<? super java.util.Collection<Pair<RepositoryArtifactDescription,RemoteRepositoryDescription>>> resultProcessor) |
static void |
searchRepositories(Project project,
java.util.Collection<java.lang.String> serviceUrls,
Processor<? super java.util.Collection<RemoteRepositoryDescription>> resultProcessor) |
public static boolean hasRunningTasks()
public static NewLibraryConfiguration chooseLibraryAndDownload(Project project, java.lang.String initialFilter, javax.swing.JComponent parentComponent)
public static NewLibraryConfiguration resolveAndDownload(Project project, JpsMavenRepositoryLibraryDescriptor descriptor, java.util.Set<ArtifactKind> kinds, java.lang.String copyTo, java.util.Collection<RemoteRepositoryDescription> repositories)
public static NewLibraryConfiguration resolveAndDownload(Project project, java.lang.String coord, boolean attachSources, boolean attachJavaDoc, boolean includeTransitiveDependencies, java.lang.String copyTo, java.util.Collection<RemoteRepositoryDescription> repositories)
protected static NewLibraryConfiguration createNewLibraryConfiguration(RepositoryLibraryProperties props, java.util.Collection<? extends OrderRoot> roots)
public static java.io.File getLocalRepositoryPath()
public static java.util.Collection<OrderRoot> loadDependenciesModal(Project project, RepositoryLibraryProperties libraryProps, boolean loadSources, boolean loadJavadoc, java.lang.String copyTo, java.util.Collection<RemoteRepositoryDescription> repositories)
public static java.util.Collection<OrderRoot> loadDependenciesModal(Project project, JpsMavenRepositoryLibraryDescriptor desc, java.util.Set<ArtifactKind> artifactKinds, java.util.Collection<RemoteRepositoryDescription> repositories, java.lang.String copyTo)
public static Promise<java.util.List<OrderRoot>> loadDependenciesAsync(Project project, RepositoryLibraryProperties libraryProps, boolean loadSources, boolean loadJavadoc, java.util.List<RemoteRepositoryDescription> repos, java.lang.String copyTo)
public static Promise<java.util.List<OrderRoot>> loadDependenciesAsync(Project project, JpsMavenRepositoryLibraryDescriptor desc, java.util.Set<ArtifactKind> artifactKinds, java.util.List<RemoteRepositoryDescription> repos, java.lang.String copyTo)
public static java.util.List<OrderRoot> loadDependenciesSync(Project project, JpsMavenRepositoryLibraryDescriptor desc, java.util.Set<ArtifactKind> artifactKinds, java.util.List<RemoteRepositoryDescription> repos, java.lang.String copyTo)
protected static java.util.Collection<RemoteRepositoryDescription> addDefaultsIfEmpty(Project project, java.util.Collection<RemoteRepositoryDescription> repositories)
public static Promise<java.util.Collection<java.lang.String>> getAvailableVersions(Project project, RepositoryLibraryDescription libraryDescription)
public static ArtifactDependencyNode loadDependenciesTree(RepositoryLibraryDescription description, java.lang.String version, Project project)
public static void searchArtifacts(Project project, java.lang.String coord, java.util.function.Consumer<? super java.util.Collection<Pair<RepositoryArtifactDescription,RemoteRepositoryDescription>>> resultProcessor)
public static void searchArtifacts(Project project, java.lang.String coord, java.lang.String packaging, java.util.function.Consumer<? super java.util.Collection<Pair<RepositoryArtifactDescription,RemoteRepositoryDescription>>> resultProcessor)
public static void searchRepositories(Project project, java.util.Collection<java.lang.String> serviceUrls, Processor<? super java.util.Collection<RemoteRepositoryDescription>> resultProcessor)