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

ViewConfiguration

@Incubating interface ViewConfiguration : HasConfigurableAttributes<ViewConfiguration>

Configuration for a defined artifact view.

Since
4.0

Functions

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.

isLenient

abstract fun isLenient(): Boolean

Determines whether the view should be resolved in a 'lenient' fashion. When set to true, this view will resolve as many artifacts and/or files as possible collecting any failures. When set to false, any failures will be propagated as exceptions when the view is resolved.

lenient

abstract fun lenient(lenient: Boolean): ViewConfiguration

Specify if the view should be resolved in a 'lenient' fashion. When set to true, this view will resolve as many artifacts and/or files as possible collecting any failures. When set to false, any failures will be propagated as exceptions when the view is resolved.

setLenient

abstract fun setLenient(lenient: Boolean): Unit

Specify if the view should be resolved in a 'lenient' fashion. When set to true, this view will resolve as many artifacts and/or files as possible collecting any failures. When set to false, any failures will be propagated as exceptions when the view is resolved.

Inherited Functions

attributes

abstract fun attributes(action: Action<in AttributeContainer>): SELF

Configure the attribute container that provides the attributes associated with this domain object.