Package org.gradle.api.artifacts
Schnittstelle ArtifactView.ViewConfiguration
- Alle Superschnittstellen:
HasAttributes,HasConfigurableAttributes<ArtifactView.ViewConfiguration>
- Umschließende Schnittstelle:
ArtifactView
public static interface ArtifactView.ViewConfiguration
extends HasConfigurableAttributes<ArtifactView.ViewConfiguration>
Configuration for a defined artifact view.
- Seit:
- 4.0
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcomponentFilter(Spec<? super ComponentIdentifier> componentFilter) Specify a filter for the components that should be included in this view.booleanDetermines whether the view should be resolved in a 'lenient' fashion.lenient(boolean lenient) Specify if the view should be resolved in a 'lenient' fashion.voidsetLenient(boolean lenient) Specify if the view should be resolved in a 'lenient' fashion.When invoked, this view will disregard existing attributes of its parent configuration and re-resolve the artifacts using only the attributes in the view's attribute container.Von Schnittstelle geerbte Methoden org.gradle.api.attributes.HasAttributes
getAttributesVon Schnittstelle geerbte Methoden org.gradle.api.attributes.HasConfigurableAttributes
attributes
-
Methodendetails
-
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. -
withVariantReselection
When invoked, this view will disregard existing attributes of its parent configuration and re-resolve the artifacts using only the attributes in the view's attribute container.This behavior cannot be unset on a particular view once this method is invoked.
- Seit:
- 7.5
-