api / org.gradle.api.artifacts / ArtifactView / ViewConfiguration / componentFilter

componentFilter

abstract fun componentFilter(componentFilter: Spec<in ComponentIdentifier>): ViewConfiguration

Specify a filter for the components that should be included in this view. Only artifacts from components matching the supplied filter will be returned by #getFiles() or #getArtifacts(). This method cannot be called a multiple times for a view.