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.
  • Field Details

  • Method Details

    • getName

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

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

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

      boolean isIncludesDependencies()
    • isAddedToClasspath

      boolean isAddedToClasspath()