Interface Type


@Experimental @Immutable public interface Type
An artifact'sType represents a known kind of artifacts. Such types are often associated to an extension and possibly a classifier, for example java-source has a jar extension and a sources classifier. It is also used to determine if a given dependency should be included in the classpath or if its transitive dependencies should.
Since:
4.0
  • Field Details

  • Method Details

    • getName

      String getName()
      Returns the dependency type name.
      Returns:
      the type name
    • getExtension

      String getExtension()
      Get the file extension associated to the file represented by the dependency type.
      Returns:
      the file extension
    • getClassifier

      String getClassifier()
      Get the classifier associated to the dependency type.
      Returns:
      the classifier
    • isIncludesDependencies

      boolean isIncludesDependencies()
    • isAddedToClasspath

      boolean isAddedToClasspath()