Interface FeatureSpec
Handler for configuring features, which may contribute additional
configurations, publications, dependencies, ...
- Since:
- 5.3
-
Method Summary
Modifier and TypeMethodDescriptionvoidcapability(String group, String name, String version) Declares a capability of this feature.voidusingSourceSet(SourceSet sourceSet) Declares the source set which this feature is built from.
-
Method Details
-
usingSourceSet
Declares the source set which this feature is built from.- Parameters:
sourceSet- the source set
-
capability
Declares a capability of this feature. By default, a capability corresponding to the "group", "name" + feature name will be created. For example, if the group of the component is "org", that the project name is "lib" and that the feature name is "myFeature", then a capability named "org:lib-my-feature" is automatically added. Calling this method override the default and register additional capabilities.- Parameters:
group- the group of the capabilityname- the name of the capabilityversion- the version of the capability
-