org.springframework.boot.cli.compiler.dependencies

Class Dependency

  • 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 Detail

      • 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 Detail

      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object