Class Exclusion

java.lang.Object
org.eclipse.aether.graph.Exclusion

public final class Exclusion extends Object
An exclusion of one or more transitive dependencies.
See Also:
  • Constructor Details

    • Exclusion

      public Exclusion(String groupId, String artifactId, String classifier, String extension)
      Creates an exclusion for artifacts with the specified coordinates.
      Parameters:
      groupId - The group identifier, may be null.
      artifactId - The artifact identifier, may be null.
      classifier - The classifier, may be null.
      extension - The file extension, may be null.
  • Method Details

    • getGroupId

      public String getGroupId()
      Gets the group identifier for artifacts to exclude.
      Returns:
      The group identifier, never null.
    • getArtifactId

      Gets the artifact identifier for artifacts to exclude.
      Returns:
      The artifact identifier, never null.
    • getClassifier

      Gets the classifier for artifacts to exclude.
      Returns:
      The classifier, never null.
    • getExtension

      public String getExtension()
      Gets the file extension for artifacts to exclude.
      Returns:
      The file extension of artifacts to exclude, never null.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object