public class DefaultSelfResolvingDependency extends AbstractDependency implements SelfResolvingDependency, FileCollectionDependency
ARCHIVES_CONFIGURATION, CLASSIFIER, DEFAULT_CONFIGURATION| Constructor and Description |
|---|
DefaultSelfResolvingDependency(FileCollection source) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contentEquals(Dependency dependency)
Returns whether two dependencies have identical values for their properties.
|
SelfResolvingDependency |
copy()
Creates and returns a new dependency with the property values of this one.
|
TaskDependency |
getBuildDependencies()
Returns a dependency which contains the tasks which build this artifact.
|
String |
getGroup()
Returns the group of this dependency.
|
String |
getName()
Returns the name of this dependency.
|
FileCollection |
getSource() |
String |
getVersion()
Returns the version of this dependency.
|
Set<File> |
resolve()
Resolves this dependency.
|
Set<File> |
resolve(boolean transitive)
Resolves this dependency by specifying the transitive mode.
|
void |
resolve(DependencyResolveContext context) |
copyTo, hashCodepublic DefaultSelfResolvingDependency(FileCollection source)
public FileCollection getSource()
public boolean contentEquals(Dependency dependency)
DependencycontentEquals in interface Dependencydependency - The dependency to compare this dependency withpublic SelfResolvingDependency copy()
Dependencycopy in interface Dependencypublic String getGroup()
DependencygetGroup in interface Dependencypublic String getName()
DependencygetName in interface Dependencypublic String getVersion()
DependencygetVersion in interface Dependencypublic void resolve(DependencyResolveContext context)
resolve in interface ResolvableDependencyresolve in class AbstractDependencypublic Set<File> resolve()
SelfResolvingDependencyProjectDependency is resolved with transitive equals true
by this method.resolve in interface SelfResolvingDependencySelfResolvingDependency.resolve(boolean)public Set<File> resolve(boolean transitive)
SelfResolvingDependencyProjectDependency. In this case, if transitive is false,
only the self resolving dependencies of the project configuration which are no project dependencies are resolved. If transitive
is set to true, other project dependencies belonging to the configuration of the resolved project dependency are
resolved recursively.resolve in interface SelfResolvingDependencytransitive - Whether to resolve transitively. Has only an effect on a ProjectDependencypublic TaskDependency getBuildDependencies()
BuildableBuildable implementations
must ensure that the returned dependency object is live, so that it tracks changes to the dependencies of this
buildable.getBuildDependencies in interface BuildableCopyright © 2013. All rights reserved