Interface GraphItem


public interface GraphItem
A node in a dependency graph, representing a direct or transitive dependency. This does not directly contain artifact information, instead it focuses on the graph information (transitive dependencies) as well as the usage of this particular dependency in this node of the graph (ie what are its modifiers: what version was originally requested.)
Since:
2.3
  • Method Details

    • getArtifactAddress

      @NonNull String getArtifactAddress()
      Returns the artifact address in a unique way. This is either a module path for sub-modules, or a maven coordinate for external dependencies. The maven coordinates are in the format: groupId:artifactId:version[:classifier][@extension]
    • getRequestedCoordinates

      @Nullable String getRequestedCoordinates()
      Returns this library's Maven coordinates, as requested in the build file.
    • getDependencies

      @NonNull List<GraphItem> getDependencies()
      Return the direct dependency of this node.