@Experimental @Immutable public interface Type
Type
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.Modifier and Type | Field and Description |
---|---|
static String |
JAR |
static String |
JAVA_SOURCE |
static String |
JAVADOC |
static String |
MAVEN_PLUGIN |
static String |
POM |
static String |
TEST_JAR |
Modifier and Type | Method and Description |
---|---|
String |
getClassifier()
Get the classifier associated to the dependency type.
|
String |
getExtension()
Get the file extension associated to the file represented by the dependency type.
|
String |
getName()
Returns the dependency type name.
|
boolean |
isAddedToClasspath() |
boolean |
isIncludesDependencies() |
static final String POM
static final String JAR
static final String JAVA_SOURCE
static final String JAVADOC
static final String MAVEN_PLUGIN
static final String TEST_JAR
String getName()
String getExtension()
String getClassifier()
boolean isIncludesDependencies()
boolean isAddedToClasspath()
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.