Package org.gradle.api.artifacts.type
Interface ArtifactTypeDefinition
- All Superinterfaces:
- HasAttributes,- Named
Meta-data about a particular type of artifacts.
- Since:
- 4.0
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.gradle.api.NamedNamed.Namer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionThe attribute that represents the type of the artifact.static final StringRepresents a binary filestatic final StringRepresents a raw directorystatic final StringRepresents a JAR file.static final StringRepresents a directory tree containing class files.static final StringRepresents a directory tree containing jvm classpath resource files.static final StringRepresents a zip file
- 
Method SummaryModifier and TypeMethodDescriptionDefines the set of attributes to apply to a component that is packaged as an artifact of this type, when no other attributes are defined.Returns the set of file name extensions that should be mapped to this artifact type.
- 
Field Details- 
ARTIFACT_TYPE_ATTRIBUTEThe attribute that represents the type of the artifact.- Since:
- 7.3
 
- 
JAR_TYPERepresents a JAR file.- Since:
- 4.0
- See Also:
 
- 
JVM_CLASS_DIRECTORYRepresents a directory tree containing class files.- Since:
- 4.0
- See Also:
 
- 
JVM_RESOURCES_DIRECTORYRepresents a directory tree containing jvm classpath resource files.- Since:
- 4.0
- See Also:
 
- 
ZIP_TYPERepresents a zip file- Since:
- 5.3
- See Also:
 
- 
DIRECTORY_TYPERepresents a raw directory- Since:
- 5.3
- See Also:
 
- 
BINARY_DATA_TYPERepresents a binary file- Since:
- 7.4
- See Also:
 
 
- 
- 
Method Details- 
getFileNameExtensionsReturns the set of file name extensions that should be mapped to this artifact type. Defaults to the name of this type.
- 
getAttributesAttributeContainer getAttributes()Defines the set of attributes to apply to a component that is packaged as an artifact of this type, when no other attributes are defined. For example, these attributes are applied when a Maven module contains an artifact with one of the extensions listed ingetFileNameExtensions().- Specified by:
- getAttributesin interface- HasAttributes
 
 
-