public class DefaultResolvedConfiguration extends Object implements ResolvedConfiguration
| Constructor and Description |
|---|
DefaultResolvedConfiguration(DefaultLenientConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
Set<File> |
getFiles(Spec<? super Dependency> dependencySpec)
Returns the files for the specified subset of configuration dependencies.
|
Set<ResolvedDependency> |
getFirstLevelModuleDependencies()
Returns the
ResolvedDependency instances for each direct dependency of the configuration. |
Set<ResolvedDependency> |
getFirstLevelModuleDependencies(Spec<? super Dependency> dependencySpec)
Returns the
ResolvedDependency instances for each direct dependency of the configuration that matches
the given spec. |
LenientConfiguration |
getLenientConfiguration()
Provides configuration that does not fail eagerly when some dependencies are not resolved.
|
Set<ResolvedArtifact> |
getResolvedArtifacts()
Returns the set of artifact meta-data for this configuration.
|
boolean |
hasError()
Returns whether all dependencies were successfully retrieved or not.
|
void |
rethrowFailure()
A resolve of a configuration that is not successful does not automatically throws an exception.
|
public DefaultResolvedConfiguration(DefaultLenientConfiguration configuration)
public boolean hasError()
ResolvedConfigurationhasError in interface ResolvedConfigurationpublic void rethrowFailure()
throws ResolveException
ResolvedConfigurationrethrowFailure in interface ResolvedConfigurationResolveException - when the resolve was not successful.public LenientConfiguration getLenientConfiguration()
ResolvedConfigurationgetLenientConfiguration in interface ResolvedConfigurationpublic Set<File> getFiles(Spec<? super Dependency> dependencySpec) throws ResolveException
ResolvedConfigurationgetFiles in interface ResolvedConfigurationdependencySpec - The filter for the configuration dependencies.ResolveException - when the resolve was not successful.public Set<ResolvedDependency> getFirstLevelModuleDependencies() throws ResolveException
ResolvedConfigurationResolvedDependency instances for each direct dependency of the configuration. Via those
you have access to all ResolvedDependency instances, including the transitive dependencies of the
configuration.getFirstLevelModuleDependencies in interface ResolvedConfigurationResolvedDependency instance for each direct dependency.ResolveException - when the resolve was not successful.public Set<ResolvedDependency> getFirstLevelModuleDependencies(Spec<? super Dependency> dependencySpec) throws ResolveException
ResolvedConfigurationResolvedDependency instances for each direct dependency of the configuration that matches
the given spec. Via those you have access to all ResolvedDependency instances, including the transitive
dependencies of the configuration.getFirstLevelModuleDependencies in interface ResolvedConfigurationdependencySpec - A filter for the dependencies to be resolved.ResolvedDependency instance for each direct dependency.ResolveException - when the resolve was not successful.public Set<ResolvedArtifact> getResolvedArtifacts() throws ResolveException
ResolvedConfigurationgetResolvedArtifacts in interface ResolvedConfigurationResolveException - when the resolve was not successful.Copyright © 2013. All rights reserved