package saker.maven.support.api.download
public class ArtifactDownloadUtils
Utility class with functions to interact with Maven artifact downloading.
public static TaskFactory< | createDownloadArtifactsTaskFactory( Creates a new task that downloads the specified artifacts. |
public static TaskIdentifier | createDownloadArtifactsTaskIdentifier( Creates a task identifier for the artifact downloading task. |
public static TaskFactory<? extends ArtifactDownloadTaskOutput> createDownloadArtifactsTaskFactory(MavenOperationConfiguration config, Set<? extends ArtifactCoordinates> coordinates ) throws NullPointerException
Creates a new task that downloads the specified artifacts.
configThe configuration to use during the operation .
coordinatesThe artifact coordinates to download.
The downloading task factory.
NullPointerExceptionIf any of the arguments are
null
.public static TaskIdentifier createDownloadArtifactsTaskIdentifier(MavenOperationConfiguration config, Set<? extends ArtifactCoordinates> coordinates ) throws NullPointerException
Creates a task identifier for the artifact downloading task.
The created task identifier should be used with the result of
createDownloadArtifactsTaskFactory(
configThe configuration to use during the operation.
coordinatesThe artifact coordinates to download.
The task identifier.
NullPointerExceptionIf any of the arguments are
null
.