public interface FeatureSpec
| Modifier and Type | Method | Description |
|---|---|---|
void |
capability(String group,
String name,
String version) |
Declares a capability of this feature.
|
void |
usingSourceSet(SourceSet sourceSet) |
Declares the source set which this feature is built from.
|
void |
withJavadocJar() |
Automatically package Javadoc and register the produced JAR as a variant.
|
void |
withSourcesJar() |
Automatically package sources from the linked
SourceSet and register the produced JAR as a variant. |
void usingSourceSet(SourceSet sourceSet)
sourceSet - the source setvoid capability(String group, String name, String version)
group - the group of the capabilityname - the name of the capabilityversion - the version of the capability@Incubating void withJavadocJar()
JavaPluginExtension.withJavadocJar().@Incubating void withSourcesJar()
SourceSet and register the produced JAR as a variant.
See also JavaPluginExtension.withSourcesJar() ()}.