Package org.stianloader.picoresolve
Class MavenResolver
java.lang.Object
org.stianloader.picoresolve.MavenResolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether to pretend that dependencies marked as "optional" do not exist.booleanWhether to pretend that dependencies with the "test" scope did not exist. -
Constructor Summary
ConstructorsConstructorDescriptionMavenResolver(@NotNull Path mavenLocal) MavenResolver(@NotNull Path mavenLocal, @Nullable Collection<@NotNull MavenRepository> repos) MavenResolver(@NotNull RepositoryNegotiatior negotiator) -
Method Summary
Modifier and TypeMethodDescriptionaddRepositories(@NotNull Collection<@NotNull MavenRepository> repos) addRepositories(@NotNull MavenRepository @NotNull ... repos) addRepository(@NotNull MavenRepository repo) CompletableFuture<Map.Entry<@NotNull GAV,RepositoryAttachedValue<Path>>> download(@NotNull String group, @NotNull String artifact, @NotNull VersionRange versionRange, @Nullable String classifier, @NotNull String extension, @NotNull Executor executor) download(@NotNull GAV gav, @Nullable String classifier, @NotNull String extension, @NotNull Executor executor) resolveAllChildren(@NotNull DependencyLayer current, @NotNull Executor executor) resolveChildLayer(@NotNull DependencyLayer current, @NotNull Executor executor) voidsetLogger(@NotNull LoggingAdapter logger)
-
Field Details
-
ignoreTestDependencies
public boolean ignoreTestDependenciesWhether to pretend that dependencies with the "test" scope did not exist. This may significantly improve lookup speeds, while in most cases not having any significant drawbacks due to the fact that usually you'd not want to resolve the artifacts a dependency uses to test itself. -
ignoreOptionalDependencies
public boolean ignoreOptionalDependenciesWhether to pretend that dependencies marked as "optional" do not exist. This may significantly improve lookup speeds, while in most cases mirroring standard maven behaviour and being without drawbacks. However it may have drawbacks when it comes to version negotiation.
-
-
Constructor Details
-
MavenResolver
-
MavenResolver
public MavenResolver(@NotNull @NotNull Path mavenLocal, @Nullable @Nullable Collection<@NotNull MavenRepository> repos) -
MavenResolver
-
-
Method Details
-
addRepositories
-
addRepository
-
addRepositories
-
download
public CompletableFuture<RepositoryAttachedValue<Path>> download(@NotNull @NotNull GAV gav, @Nullable @Nullable String classifier, @NotNull @NotNull String extension, @NotNull @NotNull Executor executor) -
resolveAllChildren
public CompletableFuture<Void> resolveAllChildren(@NotNull @NotNull DependencyLayer current, @NotNull @NotNull Executor executor) -
resolveChildLayer
public CompletableFuture<DependencyLayer> resolveChildLayer(@NotNull @NotNull DependencyLayer current, @NotNull @NotNull Executor executor) -
download
public CompletableFuture<Map.Entry<@NotNull GAV,RepositoryAttachedValue<Path>>> download(@NotNull @NotNull String group, @NotNull @NotNull String artifact, @NotNull @NotNull VersionRange versionRange, @Nullable @Nullable String classifier, @NotNull @NotNull String extension, @NotNull @NotNull Executor executor) -
setLogger
-