@Singleton public class DependencyResolutionService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TEST_RESOURCES_ARTIFACT_ID_PREFIX |
static String |
TEST_RESOURCES_GROUP |
Constructor and Description |
---|
DependencyResolutionService(org.apache.maven.execution.MavenSession mavenSession,
org.apache.maven.project.MavenProject mavenProject,
org.eclipse.aether.RepositorySystem repositorySystem) |
Modifier and Type | Method and Description |
---|---|
List<org.eclipse.aether.resolution.ArtifactResult> |
artifactResultsFor(Stream<org.eclipse.aether.artifact.Artifact> artifacts,
boolean applyManagedDependencies)
Performs a dependency request to compute the transitive dependencies of the given artifacts.
|
static org.eclipse.aether.artifact.Artifact |
mavenDependencyToAetherArtifact(org.apache.maven.model.Dependency d) |
static org.eclipse.aether.graph.Dependency |
mavenDependencyToAetherDependency(org.apache.maven.model.Dependency d) |
static io.micronaut.testresources.buildtools.MavenDependency |
mavenDependencyToTestResourcesDependency(org.apache.maven.model.Dependency d) |
static org.eclipse.aether.artifact.Artifact |
testResourcesDependencyToAetherArtifact(io.micronaut.testresources.buildtools.MavenDependency d) |
static org.eclipse.aether.artifact.Artifact |
testResourcesModuleToAetherArtifact(String module,
String testResourcesVersion) |
static List<String> |
toClasspath(List<org.eclipse.aether.resolution.ArtifactResult> resolutionResult) |
static List<File> |
toClasspathFiles(List<org.eclipse.aether.resolution.ArtifactResult> resolutionResult) |
public static final String TEST_RESOURCES_GROUP
public static final String TEST_RESOURCES_ARTIFACT_ID_PREFIX
@Inject public DependencyResolutionService(org.apache.maven.execution.MavenSession mavenSession, org.apache.maven.project.MavenProject mavenProject, org.eclipse.aether.RepositorySystem repositorySystem)
public static List<String> toClasspath(List<org.eclipse.aether.resolution.ArtifactResult> resolutionResult)
public static List<File> toClasspathFiles(List<org.eclipse.aether.resolution.ArtifactResult> resolutionResult)
public static org.eclipse.aether.graph.Dependency mavenDependencyToAetherDependency(org.apache.maven.model.Dependency d)
public static org.eclipse.aether.artifact.Artifact mavenDependencyToAetherArtifact(org.apache.maven.model.Dependency d)
public static io.micronaut.testresources.buildtools.MavenDependency mavenDependencyToTestResourcesDependency(org.apache.maven.model.Dependency d)
public static org.eclipse.aether.artifact.Artifact testResourcesDependencyToAetherArtifact(io.micronaut.testresources.buildtools.MavenDependency d)
public static org.eclipse.aether.artifact.Artifact testResourcesModuleToAetherArtifact(String module, String testResourcesVersion)
public List<org.eclipse.aether.resolution.ArtifactResult> artifactResultsFor(Stream<org.eclipse.aether.artifact.Artifact> artifacts, boolean applyManagedDependencies) throws org.eclipse.aether.resolution.DependencyResolutionException
org.eclipse.aether.resolution.DependencyResolutionException
Copyright © 2020–2023 Micronaut. All rights reserved.