Package org.gradle.api.artifacts
@NonNullApi
package org.gradle.api.artifacts
Classes for declaring and using artifacts and artifact dependencies.
-
ClassDescriptionA collection of artifacts resolved for a configuration.Deprecated.Will be removed in Gradle 9.0.A
ResolverContainer
is responsible for managing a set ofArtifactRepository
instances.Details about artifact dependency substitution: this class gives access to the original dependency requested artifacts, if any, and gives the opportunity to replace the original requested artifacts with other artifacts.A view over the artifacts resolved for this set of dependencies.Configuration for a defined artifact view.Declares a rule eligible for caching.Allows configuring the capabilities resolution strategy.Gives access to the resolution details of a single capability conflict.Deprecated.Provides a read-only view of a resolved component's metadata, which typically originates from a component descriptor (Ivy file, Maven POM).A component metadata builder.Provides access to component metadata from aComponentMetadataRule
.Describes a resolved component's metadata, which typically originates from a component descriptor (Ivy file, Maven POM).Allows a custom version lister to specify the list of versions known for a specific module.A rule that modifycomponent metadata
.A component metadata rule is responsible for providing the initial metadata of a component from a remote repository, in place of parsing the descriptor.A component metadata rule details, giving access to the identifier of the component being resolved, the metadata builder, and the repository resource accessor for this.Interface for custom version listers.Contains immutable component module metadata information.Contains and allows configuring component module metadata information.Represents a tuple of the component selector of a module and a candidate version to be evaluated in a component selection rule.Represents a container for component selection rules.Identifies a variant of a component by component identifier and variant name.APublishArtifact
whose properties can be modified.AConfiguration
represents a group of artifacts and their dependencies.Deprecated.The states a configuration can be into.AConfigurationContainer
is responsible for declaring and managing configurations.Represents the outgoing artifacts associated with a configuration.Represents some variant of an outgoing configuration.AConfiguration
which can be consumed via Publishing and Dependency Management.DependenciesMetadata<T extends DependencyMetadata>Describes metadata about a dependency - direct dependencies or dependency constraints - declared in a resolved component's metadata.ADependency
represents a dependency on the artifacts from a particular source.Data class that represents an artifact included in aDependency
.Details about an artifact selection in the context of a dependency substitution.Represents a constraints over all, including transitive, dependencies.Describes a dependency constraint declared in a resolved component's metadata, which typically originates from a component descriptor (Gradle metadata file).A set of dependency constraint definitions that are associated with a configuration.Describes the dependency constraints of a variant declared in a resolved component's metadata, which typically originate from a component descriptor (Gradle metadata file).DependencyMetadata<SELF extends DependencyMetadata>Describes a metadata about a dependency - direct dependency or dependency constraint - declared in a resolved component's metadata.ADependencyResolutionListener
is notified as dependencies are resolved.Provides details about a dependency when it is resolved.AConfiguration
which collects dependencies, dependency constraints, and exclude rules.A set of artifact dependencies.Provides means to substitute a different dependency during resolution.Allows replacing dependencies with other dependencies.Provides a DSL-friendly mechanism for specifying the target of a substitution.Describes the dependencies of a variant declared in a resolved component's metadata, which typically originate from a component descriptor (Gradle metadata file, Ivy file, Maven POM).Describes a dependency declared in a resolved component's metadata, which typically originates from a component descriptor (Gradle metadata file, Ivy file, Maven POM).AnExcludeRule
is used to describe transitive dependencies that should be excluded when resolving dependencies.A container for adding exclude rules for dependencies.AnExternalDependency
is aDependency
on a source outside the current project hierarchy.AExternalModuleDependency
is aDependency
on a module outside the current project hierarchy.A bundle is a list of dependencies which are always added together.AFileCollectionDependency
is aDependency
on a collection of local files which are not stored in a repository.Resolved configuration that does not fail eagerly when some dependencies are not resolved, or some artifacts do not exist.The minimal information Gradle needs to address an external module.AModuleDependency
is aDependency
on a component that exists outside of the current project.The capabilities requested for a dependency.The identifier of a module.The identifier of a module version.Selects a module version.Mutable information about the files that belong to a variant.A configurable version constraint.AProjectDependency
is aDependency
on another project in the current project hierarchy.APublishArtifact
is an artifact produced by a project.A set of artifacts to be published.APublishException
is thrown when a dependency configuration cannot be published for some reason.Defines the strategies around dependency resolution.Defines the sort order for components and artifacts produced by the configuration.AConfiguration
which performs dependency resolution to build dependency graphs and resolve artifacts.The primary view of the results of resolving aConfiguration
.Information about a resolved artifact.AResolvedConfiguration
represents the result of resolving aConfiguration
, and provides access to both the graph and artifacts of the result.Information about a resolved dependency.Represents meta-data about a resolved module version.An opaque exception, thrown when dependency resolution fails for some reason.Deprecated.Dependencies should not be resolved outside a resolvable configuration.AnUnknownConfigurationException
is thrown when a configuration referenced by name cannot be found.AnUnknownRepositoryException
is thrown when a repository referenced by name cannot be found.Unsuccessfully resolved dependency.Part of a component variant's metadata representing a file and its location.Represents the metadata of one variant of a component, seeComponentMetadataDetails.withVariant(String, Action)
.Allows configuring the variant-aware selection aspects of a specific dependency.Provides access to a version catalog.Gives access to all version catalogs available.Represents a constraint that is used to match module versions to a dependency.