Class Dependency
- java.lang.Object
-
- org.grails.cli.compiler.dependencies.Dependency
-
public final class Dependency extends java.lang.ObjectA single dependency.- Since:
- 2022.1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDependency.ExclusionA dependency exclusion.
-
Constructor Summary
Constructors Constructor Description Dependency(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)Create a newDependencyinstance.Dependency(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.util.List<Dependency.Exclusion> exclusions)Create a newDependencyinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetArtifactId()Return the dependency artifact id.java.util.List<Dependency.Exclusion>getExclusions()Return the dependency exclusions.java.lang.StringgetGroupId()Return the dependency group id.java.lang.StringgetVersion()Return the dependency version.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
Dependency
public Dependency(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)Create a newDependencyinstance.- Parameters:
groupId- the group IDartifactId- the artifact IDversion- the version
-
Dependency
public Dependency(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.util.List<Dependency.Exclusion> exclusions)Create a newDependencyinstance.- Parameters:
groupId- the group IDartifactId- the artifact IDversion- the versionexclusions- the exclusions
-
-
Method Detail
-
getGroupId
public java.lang.String getGroupId()
Return the dependency group id.- Returns:
- the group ID
-
getArtifactId
public java.lang.String getArtifactId()
Return the dependency artifact id.- Returns:
- the artifact ID
-
getVersion
public java.lang.String getVersion()
Return the dependency version.- Returns:
- the version
-
getExclusions
public java.util.List<Dependency.Exclusion> getExclusions()
Return the dependency exclusions.- Returns:
- the exclusions
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-