Package org.gradle.api.attributes
Interface Bundling
- All Superinterfaces:
- Named
This attribute describes how dependencies of a component are found.
 There are currently 3 supported modes:
 
- external, the default, where dependencies, if any, are found transitively
- embedded, where dependencies are found inside the component, but using the same namespace as the original dependencies
- shadowed, where dependencies are found inside the component, but within a different namespace to avoid name clashes
As a practical example, let's consider the Java ecosystem:
- 
         Jar component:
         - externalindicates that transitive dependencies are themselves component jars
- embeddedindicates that transitive dependencies have been included inside the component jar, without modifying their packages
- shadowedindicates that transitive dependencies have been included inside the component jar, under different packages to prevent conflicts
 
- 
         Sources component:
         - externalindicates that the source of transitive dependencies are themselves source jars
- embeddedindicates that the source of transitive dependencies have been included inside the component source jar, without modifying their packages
- shadowedindicates that the source of transitive dependencies have been included inside the component source jar, under different packages
 
- Since:
- 5.3
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.gradle.api.NamedNamed.Namer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringDependencies are packaged within the main component artifact.static final StringThe most common case: dependencies are provided as individual components.static final StringDependencies are packaged within the main component artifact but also in a different namespace to prevent conflicts.
- 
Method Summary
- 
Field Details- 
BUNDLING_ATTRIBUTE
- 
EXTERNALThe most common case: dependencies are provided as individual components.- See Also:
 
- 
EMBEDDEDDependencies are packaged within the main component artifact.- See Also:
 
- 
SHADOWEDDependencies are packaged within the main component artifact but also in a different namespace to prevent conflicts.- See Also:
 
 
-