abstract fun withArtifacts(componentType: Class<out Component>, vararg artifactTypes: Class<out Artifact>): ArtifactResolutionQuery
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.
componentType
- The expected type of the component.
artifactTypes
- The artifacts to retrieve for the queried components.
abstract fun withArtifacts(componentType: Class<out Component>, artifactTypes: MutableCollection<Class<out Artifact>>): ArtifactResolutionQuery
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.
componentType
- The expected type of the component.
artifactTypes
- The artifacts to retrieve for the queried components.
Since
4.5