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
ResolverContaineris responsible for managing a set ofArtifactRepositoryinstances.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.APublishArtifactwhose properties can be modified.AConfigurationrepresents a group of artifacts and their dependencies.Deprecated.The states a configuration can be into.AConfigurationContaineris responsible for declaring and managing configurations.Represents the outgoing artifacts associated with a configuration.Represents some variant of an outgoing configuration.AConfigurationwhich 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.ADependencyrepresents 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.ADependencyResolutionListeneris notified as dependencies are resolved.Provides details about a dependency when it is resolved.AConfigurationwhich 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).AnExcludeRuleis used to describe transitive dependencies that should be excluded when resolving dependencies.A container for adding exclude rules for dependencies.AnExternalDependencyis aDependencyon a source outside the current project hierarchy.AExternalModuleDependencyis aDependencyon a module outside the current project hierarchy.A bundle is a list of dependencies which are always added together.AFileCollectionDependencyis aDependencyon a collection of local files which are not stored in a repository.AConfigurationwith a mutable role, that can potentially perform behavior of aConsumableConfiguration, aResolvableConfiguration, or aDependencyScopeConfiguration.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.AModuleDependencyis aDependencyon 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.AProjectDependencyis aDependencyon another project in the current project hierarchy.APublishArtifactis an artifact produced by a project.A set of artifacts to be published.APublishExceptionis 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.AConfigurationwhich performs dependency resolution to build dependency graphs and resolve artifacts.The primary view of the results of resolving aConfiguration.Information about a resolved artifact.AResolvedConfigurationrepresents 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.AnUnknownConfigurationExceptionis thrown when a configuration referenced by name cannot be found.AnUnknownRepositoryExceptionis 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.