java.lang.Object
org.springframework.boot.cli.compiler.dependencies.Dependency

public final class Dependency extends Object
A single dependency.
Since:
1.3.0
Author:
Phillip Webb
  • Constructor Details

    • Dependency

      public Dependency(String groupId, String artifactId, String version)
      Create a new Dependency instance.
      Parameters:
      groupId - the group ID
      artifactId - the artifact ID
      version - the version
    • Dependency

      public Dependency(String groupId, String artifactId, String version, List<Dependency.Exclusion> exclusions)
      Create a new Dependency instance.
      Parameters:
      groupId - the group ID
      artifactId - the artifact ID
      version - the version
      exclusions - the exclusions
  • Method Details

    • getGroupId

      public String getGroupId()
      Return the dependency group id.
      Returns:
      the group ID
    • getArtifactId

      public String getArtifactId()
      Return the dependency artifact id.
      Returns:
      the artifact ID
    • getVersion

      public String getVersion()
      Return the dependency version.
      Returns:
      the version
    • getExclusions

      public List<Dependency.Exclusion> getExclusions()
      Return the dependency exclusions.
      Returns:
      the exclusions
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object