Class DependencyCoordinate

java.lang.Object
io.micronaut.projectgen.core.buildtools.dependencies.DependencyCoordinate
All Implemented Interfaces:
io.micronaut.core.order.Ordered, Coordinate
Direct Known Subclasses:
GradleDependency, MavenDependency

@Introspected public class DependencyCoordinate extends Object implements Coordinate, io.micronaut.core.order.Ordered
Dependency Coordinate.
  • Constructor Details

    • DependencyCoordinate

      public DependencyCoordinate(Dependency dependency)
    • DependencyCoordinate

      public DependencyCoordinate(Dependency dependency, boolean showVersionProperty)
    • DependencyCoordinate

      public DependencyCoordinate(String groupId, String artifactId, @Nullable @Nullable String version, int order, boolean pom)
    • DependencyCoordinate

      public DependencyCoordinate(String groupId, String artifactId, @Nullable @Nullable String version, int order, boolean pom, @Nullable @Nullable List<DependencyCoordinate> exclusions, @Nullable @Nullable List<Substitution> substitutions)
  • Method Details

    • getSubstitutions

      @Nullable public @Nullable List<Substitution> getSubstitutions()
      Returns:
      substitutions
    • getExclusions

      @Nullable public @Nullable List<DependencyCoordinate> getExclusions()
      Returns:
      exclusions
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface io.micronaut.core.order.Ordered
    • getGroupId

      @NonNull public @NonNull String getGroupId()
      Specified by:
      getGroupId in interface Coordinate
    • getArtifactId

      @NonNull public @NonNull String getArtifactId()
      Specified by:
      getArtifactId in interface Coordinate
    • getVersion

      @Nullable public @Nullable String getVersion()
      Specified by:
      getVersion in interface Coordinate
    • isPom

      public boolean isPom()
      Specified by:
      isPom in interface Coordinate
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object