HasAttributes
, HasConfigurableAttributes<ArtifactView.ViewConfiguration>
@Incubating public static interface ArtifactView.ViewConfiguration extends HasConfigurableAttributes<ArtifactView.ViewConfiguration>
Modifier and Type | Method | Description |
---|---|---|
ArtifactView.ViewConfiguration |
componentFilter(Spec<? super ComponentIdentifier> componentFilter) |
Specify a filter for the components that should be included in this view.
|
boolean |
isLenient() |
Determines whether the view should be resolved in a 'lenient' fashion.
|
ArtifactView.ViewConfiguration |
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.
|
getAttributes
attributes
ArtifactView.ViewConfiguration componentFilter(Spec<? super ComponentIdentifier> componentFilter)
ArtifactView.getFiles()
or ArtifactView.getArtifacts()
.
This method cannot be called a multiple times for a view.boolean isLenient()
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.void setLenient(boolean lenient)
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.ArtifactView.ViewConfiguration lenient(boolean lenient)
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.