Package org.gradle.api.artifacts
Interface ArtifactView.ViewConfiguration
- All Superinterfaces:
HasAttributes
,HasConfigurableAttributes<ArtifactView.ViewConfiguration>
- Enclosing interface:
- ArtifactView
@Incubating
public static interface ArtifactView.ViewConfiguration
extends HasConfigurableAttributes<ArtifactView.ViewConfiguration>
Configuration for a defined artifact view.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptioncomponentFilter
(Spec<? super ComponentIdentifier> componentFilter) Specify a filter for the components that should be included in this view.boolean
Determines whether the view should be resolved in a 'lenient' fashion.lenient
(boolean lenient) Specify if the view should be resolved in a 'lenient' fashion.void
setLenient
(boolean lenient) Specify if the view should be resolved in a 'lenient' fashion.Methods inherited from interface org.gradle.api.attributes.HasAttributes
getAttributes
Methods inherited from interface org.gradle.api.attributes.HasConfigurableAttributes
attributes
-
Method Details
-
componentFilter
Specify a filter for the components that should be included in this view. Only artifacts from components matching the supplied filter will be returned byArtifactView.getFiles()
orArtifactView.getArtifacts()
. This method cannot be called a multiple times for a view. -
isLenient
boolean isLenient()Determines whether the view should be resolved in a 'lenient' fashion. When set totrue
, this view will resolve as many artifacts and/or files as possible collecting any failures. When set tofalse
, any failures will be propagated as exceptions when the view is resolved. -
setLenient
void setLenient(boolean lenient) Specify if the view should be resolved in a 'lenient' fashion. When set totrue
, this view will resolve as many artifacts and/or files as possible collecting any failures. When set tofalse
, any failures will be propagated as exceptions when the view is resolved. -
lenient
Specify if the view should be resolved in a 'lenient' fashion. When set totrue
, this view will resolve as many artifacts and/or files as possible collecting any failures. When set tofalse
, any failures will be propagated as exceptions when the view is resolved.
-