FeatureSpec

interface FeatureSpec(source)

Handler for configuring features, which may contribute additional configurations, publications, dependencies, ...

Since

5.3

Functions

Link copied to clipboard
abstract fun capability(group: String, name: String, version: String)
Declares a capability of this feature.
Link copied to clipboard
abstract fun disablePublication()
By default, features are published on external repositories.
Link copied to clipboard
abstract fun usingSourceSet(sourceSet: SourceSet)
Declares the source set which this feature is built from.
Link copied to clipboard
abstract fun withJavadocJar()
Automatically package Javadoc and register the produced JAR as a variant.
Link copied to clipboard
abstract fun withSourcesJar()
Automatically package sources from the linked SourceSet and register the produced JAR as a variant.