Class Dependency
java.lang.Object
org.springframework.boot.cli.compiler.dependencies.Dependency
A single dependency.
- Since:
- 1.3.0
- Author:
- Phillip Webb
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionDependency
(String groupId, String artifactId, String version) Create a newDependency
instance.Dependency
(String groupId, String artifactId, String version, List<Dependency.Exclusion> exclusions) Create a newDependency
instance. -
Method Summary
-
Constructor Details
-
Dependency
Create a newDependency
instance.- Parameters:
groupId
- the group IDartifactId
- the artifact IDversion
- the version
-
Dependency
public Dependency(String groupId, String artifactId, String version, List<Dependency.Exclusion> exclusions) Create a newDependency
instance.- Parameters:
groupId
- the group IDartifactId
- the artifact IDversion
- the versionexclusions
- the exclusions
-
-
Method Details
-
getGroupId
Return the dependency group id.- Returns:
- the group ID
-
getArtifactId
Return the dependency artifact id.- Returns:
- the artifact ID
-
getVersion
Return the dependency version.- Returns:
- the version
-
getExclusions
Return the dependency exclusions.- Returns:
- the exclusions
-
equals
-
hashCode
public int hashCode() -
toString
-