getActive

abstract fun getActive(): Provider<Boolean>(source)

Whether the feature is active in the build.

The provider is always defined and its value denotes the effective status of a feature in a build.

This method is primarily useful for conditional logic in plugins or build scripts. For instance, optional features of a plugin could be disabled if they are incompatible with a given build feature.

Note that a feature may be not active even it was requested. This can be caused by other build features or build options requested for the build.

Since

8.5