with Artifacts
abstract fun withArtifacts(componentType: Class<out Component>, artifactTypes: Array<Class<out Artifact>>): ArtifactResolutionQuery(source)
Defines the type of component that is expected in the result, and the artifacts to retrieve for components of this type. Presently, only a single component type and set of artifacts is permitted.
Parameters
component Type
The expected type of the component.
artifact Types
The artifacts to retrieve for the queried components.
abstract fun withArtifacts(componentType: Class<out Component>, artifactTypes: Collection<Class<out Artifact>>): ArtifactResolutionQuery(source)
Defines the type of component that is expected in the result, and the artifacts to retrieve for components of this type. Presently, only a single component type and set of artifacts is permitted.
Since
4.5
Parameters
component Type
The expected type of the component.
artifact Types
The artifacts to retrieve for the queried components.