public final class Dependency extends Object
A single dependency.
Modifiers | Name | Description |
---|---|---|
static class |
Dependency.Exclusion |
A dependency exclusion. |
Constructor and description |
---|
Dependency(String groupId, String artifactId, String version) Create a new Dependency instance. |
Dependency(String groupId, String artifactId, String version, List<Exclusion> exclusions) Create a new Dependency instance. |
Type Params | Return Type | Name and description |
---|---|---|
|
public boolean |
equals(Object obj) |
|
public String |
getArtifactId() Return the dependency artifact id. |
|
public List<Exclusion> |
getExclusions() Return the dependency exclusions. |
|
public String |
getGroupId() Return the dependency group id. |
|
public String |
getVersion() Return the dependency version. |
|
public int |
hashCode() |
|
public String |
toString() |
Create a new Dependency instance.
groupId
- the group IDartifactId
- the artifact IDversion
- the versionCreate a new Dependency instance.
groupId
- the group IDartifactId
- the artifact IDversion
- the versionexclusions
- the exclusionsReturn the dependency artifact id.
Return the dependency exclusions.
Return the dependency group id.
Return the dependency version.