Package org.gradle.api.component
Schnittstelle SoftwareComponentFactory
@ServiceScope(org.gradle.internal.service.scopes.Scope.Global.class)
public interface SoftwareComponentFactory
A software component factory is responsible for providing to
plugins a way to create software components. Currently the
software factory only allows the creation of adhoc software
components which can be used for publishing simple components.
This is the case whenever there's no component model to be
used and that the plugin can solely rely on outgoing variants
to publish variants.
- Seit:
- 5.3
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungCreates an adhoc software component, which can be used by plugins to build custom component types.
-
Methodendetails
-
adhoc
Creates an adhoc software component, which can be used by plugins to build custom component types.- Parameter:
name- the name of the component- Gibt zurück:
- the created component, which must be added to the components container later
- Seit:
- 5.3
-