public class DefaultExternalModuleDependency extends AbstractExternalDependency implements ExternalModuleDependency
ARCHIVES_CONFIGURATION, CLASSIFIER, DEFAULT_CONFIGURATION| Constructor and Description |
|---|
DefaultExternalModuleDependency(String group,
String name,
String version) |
DefaultExternalModuleDependency(String group,
String name,
String version,
String configuration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contentEquals(Dependency dependency)
Returns whether two dependencies have identical values for their properties.
|
DefaultExternalModuleDependency |
copy()
Creates and returns a new dependency with the property values of this one.
|
boolean |
equals(Object o) |
String |
getGroup()
Returns the group of this dependency.
|
String |
getName()
Returns the name of this dependency.
|
String |
getVersion()
Returns the version of this dependency.
|
int |
hashCode() |
boolean |
isChanging()
Returns whether or nor Gradle should always check for a change in the remote repository.
|
boolean |
isForce()
Returns whether or not the version of this dependency should be enforced in the case of version conflicts.
|
DefaultExternalModuleDependency |
setChanging(boolean changing)
Sets whether or nor Gradle should always check for a change in the remote repository.
|
DefaultExternalModuleDependency |
setForce(boolean force)
Sets whether or not the version of this dependency should be enforced in the case of version conflicts.
|
String |
toString() |
copyTo, isContentEqualsForaddArtifact, artifact, copyTo, exclude, getArtifacts, getConfiguration, getExcludeRules, isCommonContentEquals, isKeyEquals, isTransitive, setArtifacts, setTransitivecopyTo, resolveclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddArtifact, artifact, exclude, getArtifacts, getConfiguration, getExcludeRules, isTransitive, setTransitivepublic DefaultExternalModuleDependency(String group, String name, String version)
public String getGroup()
DependencygetGroup in interface DependencygetGroup in interface ModuleVersionSelectorpublic String getName()
DependencygetName in interface DependencygetName in interface ModuleVersionSelectorpublic String getVersion()
DependencygetVersion in interface DependencygetVersion in interface ModuleVersionSelectorpublic boolean isForce()
ExternalDependencyisForce in interface ExternalDependencypublic DefaultExternalModuleDependency setForce(boolean force)
ExternalDependencysetForce in interface ExternalDependencyforce - Whether to force this version or not.public boolean isChanging()
ExternalModuleDependencyisChanging in interface ExternalModuleDependencyExternalModuleDependency.setChanging(boolean)public DefaultExternalModuleDependency setChanging(boolean changing)
ExternalModuleDependencysetChanging in interface ExternalModuleDependencychanging - Whether or nor Gradle should always check for a change in the remote repositorypublic DefaultExternalModuleDependency copy()
ExternalModuleDependencycopy in interface Dependencycopy in interface ExternalDependencycopy in interface ExternalModuleDependencycopy in interface ModuleDependencypublic 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