public class DefaultProjectDependency extends AbstractModuleDependency implements ProjectDependency
ARCHIVES_CONFIGURATION, CLASSIFIER, DEFAULT_CONFIGURATION| Constructor and Description |
|---|
DefaultProjectDependency(ProjectInternal dependencyProject,
ProjectDependenciesBuildInstruction instruction) |
DefaultProjectDependency(ProjectInternal dependencyProject,
String configuration,
ProjectDependenciesBuildInstruction instruction) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contentEquals(Dependency dependency)
Returns whether two dependencies have identical values for their properties.
|
ProjectDependency |
copy()
Creates and returns a new dependency with the property values of this one.
|
boolean |
equals(Object o) |
TaskDependency |
getBuildDependencies()
Returns a dependency which contains the tasks which build this artifact.
|
Project |
getDependencyProject()
Returns the project associated with this project dependency.
|
String |
getGroup()
Returns the group of this dependency.
|
String |
getName()
Returns the name of this dependency.
|
Configuration |
getProjectConfiguration()
Returns the configuration associated with this project dependency.
|
String |
getVersion()
Returns the version of this dependency.
|
int |
hashCode() |
Set<File> |
resolve()
Resolves this dependency.
|
Set<File> |
resolve(boolean transitive)
Resolves this dependency by specifying the transitive mode.
|
void |
resolve(DependencyResolveContext context) |
String |
toString() |
addArtifact, artifact, copyTo, exclude, getArtifacts, getConfiguration, getExcludeRules, isCommonContentEquals, isKeyEquals, isTransitive, setArtifacts, setTransitivecopyToclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddArtifact, artifact, exclude, getArtifacts, getConfiguration, getExcludeRules, isTransitive, setTransitivepublic DefaultProjectDependency(ProjectInternal dependencyProject, ProjectDependenciesBuildInstruction instruction)
public DefaultProjectDependency(ProjectInternal dependencyProject, String configuration, ProjectDependenciesBuildInstruction instruction)
public Project getDependencyProject()
ProjectDependencygetDependencyProject in interface ProjectDependencypublic String getGroup()
DependencygetGroup in interface Dependencypublic String getName()
DependencygetName in interface Dependencypublic String getVersion()
DependencygetVersion in interface Dependencypublic Configuration getProjectConfiguration()
ProjectDependencygetProjectConfiguration in interface ProjectDependencyProjectDependency.getDependencyProject()public ProjectDependency copy()
ProjectDependencycopy in interface Dependencycopy in interface ModuleDependencycopy in interface ProjectDependencypublic 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 void resolve(DependencyResolveContext context)
resolve in interface ResolvableDependencyresolve in class AbstractDependencypublic 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 Buildablepublic boolean contentEquals(Dependency dependency)
DependencycontentEquals in interface Dependencydependency - The dependency to compare this dependency withpublic int hashCode()
hashCode in class AbstractDependencyCopyright © 2013. All rights reserved