@NotThreadSafe public static class DependencyCollectorRequest.DependencyCollectorRequestBuilder extends Object
@Nonnull public DependencyCollectorRequest.DependencyCollectorRequestBuilder session(@Nonnull Session session)
@Nonnull public DependencyCollectorRequest.DependencyCollectorRequestBuilder rootArtifact(@Nullable Artifact rootArtifact)
root(DependencyCoordinate)
: The root dependency, like any
other specified dependency, will be subject to dependency collection/resolution, i.e. should have an artifact
descriptor and a corresponding artifact file. The root artifact on the other hand is only used
as a label for the root node of the graph in case no root dependency was specified. As such, the configured
root artifact is ignored if root(DependencyCoordinate)
has been set.rootArtifact
- The root artifact for the dependency graph, may be null
.null
.@Nonnull public DependencyCollectorRequest.DependencyCollectorRequestBuilder root(@Nonnull DependencyCoordinate root)
root
- The root dependencynull
.@Nonnull public DependencyCollectorRequest.DependencyCollectorRequestBuilder dependencies(@Nullable List<DependencyCoordinate> dependencies)
dependencies
- The direct dependencies, may be null
.null
.@Nonnull public DependencyCollectorRequest.DependencyCollectorRequestBuilder dependency(@Nullable DependencyCoordinate dependency)
dependency
- The dependency to add, may be null
.null
.@Nonnull public DependencyCollectorRequest.DependencyCollectorRequestBuilder managedDependencies(@Nullable List<DependencyCoordinate> managedDependencies)
managedDependencies
- The dependency management, may be null
.null
.@Nonnull public DependencyCollectorRequest.DependencyCollectorRequestBuilder managedDependency(@Nullable DependencyCoordinate managedDependency)
managedDependency
- The managed dependency to add, may be null
in which case the call
will have no effect.null
.@Nonnull public DependencyCollectorRequest.DependencyCollectorRequestBuilder verbose(boolean verbose)
verbose
- whether the collection should be verbose or not.null
.@Nonnull public DependencyCollectorRequest build()
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.