Configuration
A Configuration represents a group of artifacts and their dependencies. Find more information about declaring dependencies to a configuration or about managing configurations in docs for ConfigurationContainer
Configuration is an instance of a FileCollection that contains all dependencies (see also getAllDependencies) but not artifacts. If you want to refer to the artifacts declared in this configuration please use getArtifacts or getAllArtifacts. Read more about declaring artifacts in the configuration in docs for org.gradle.api.artifacts.dsl.ArtifactHandler Please see the Declaring Dependencies User Manual chapter for more information.
Inheritors
Functions
Link copied to clipboard
Adds this collection to an Ant task as a nested node.
Link copied to clipboard
Configure the attribute container that provides the attributes associated with this domain object.
Link copied to clipboard
Creates a copy of this configuration that only contains the dependencies directly in this configuration (without contributions from superconfigurations).
Takes a closure which gets coerced into a Spec.
Creates a copy of this configuration ignoring superconfigurations (see copy but filtering the dependencies using the specified dependency spec.
Link copied to clipboard
Creates a copy of this configuration that contains the dependencies directly in this configuration and those derived from superconfigurations.
Takes a closure which gets coerced into a Spec.
Creates a copy of this configuration with dependencies from superconfigurations (see copyRecursive) but filtering the dependencies using the dependencySpec.
Link copied to clipboard
Execute the given action if the configuration has no defined dependencies when it first participates in dependency resolution.
Link copied to clipboard
Disables consistent resolution for this configuration.
Link copied to clipboard
Adds the given configurations to the set of configuration which this configuration extends from.
Link copied to clipboard
Restricts the contents of this collection to those files which match the given criteria.
Link copied to clipboard
Use the given collector as a source for dependencies and dependency constraints.
Link copied to clipboard
Returns the artifacts of this configuration including the artifacts of extended configurations.
Link copied to clipboard
Gets the complete set of declared dependencies including those contributed by superconfigurations.
Link copied to clipboard
Gets the complete set of dependency constraints including those contributed by superconfigurations.
Link copied to clipboard
Returns the artifacts of this configuration excluding the artifacts of extended configurations.
Link copied to clipboard
Converts this collection to a FileTree, if not already.
Link copied to clipboard
Returns the attributes
Link copied to clipboard
Returns a
TaskDependency object containing all required dependencies to build the local dependencies (e.g.Link copied to clipboard
Gets the set of declared dependencies directly contained in this configuration (ignoring superconfigurations).
Link copied to clipboard
Gets the set of dependency constraints directly contained in this configuration (ignoring superconfigurations).
Link copied to clipboard
Returns the description for this configuration.
Link copied to clipboard
Returns the contents of this file collection as a Provider of FileSystemLocation instances.
Link copied to clipboard
Returns the exclude rules applied for resolving any dependency of this configuration.
Link copied to clipboard
Returns the configurations which this configuration extends from.
Link copied to clipboard
Gets an ordered set including this configuration and all superconfigurations recursively.
Link copied to clipboard
Returns a ResolvableDependencies instance, exposing the results of dependency resolution.
Link copied to clipboard
Returns the outgoing ConfigurationPublications instance that advertises and allows configuring the artifacts and variants published by this configuration.
Link copied to clipboard
Returns the resolution strategy used by this configuration.
Link copied to clipboard
Returns a ResolvedConfiguration, a legacy view of the results of dependency resolution.
Link copied to clipboard
Returns the content of this collection, asserting it contains exactly one file.
Link copied to clipboard
Returns the state of the configuration.
Link copied to clipboard
abstract fun getTaskDependencyFromProjectDependency(useDependedOn: Boolean, taskName: String): TaskDependency
Returns a TaskDependency object containing dependencies on all tasks with the specified name from project dependencies related to this configuration or one of its super configurations.
Link copied to clipboard
Returns true if this configuration can be consumed from another project, or published.
Link copied to clipboard
Returns true if it is allowed to declare dependencies upon this configuration.
Link copied to clipboard
Returns true if it is allowed to query or resolve this configuration.
Link copied to clipboard
Returns the transitivity of this configuration.
Link copied to clipboard
Returns a
FileCollection which contains the difference between this collection and the given collection.Link copied to clipboard
Configures the outgoing ConfigurationPublications instance that advertises and allows configuring the artifacts and variants published by this configuration.
Link copied to clipboard
Returns a
FileCollection which contains the union of this collection and the given collection.Link copied to clipboard
abstract fun resolutionStrategy(@DelegatesTo(value = ResolutionStrategy::class, strategy = 1 ) closure: Closure): Configuration
The resolution strategy provides extra details on how to resolve this configuration.
Link copied to clipboard
Configures if a configuration can be consumed.
Link copied to clipboard
Configures if a configuration can have dependencies declared upon it.
Link copied to clipboard
Configures if a configuration can be resolved.
Link copied to clipboard
Sets the description for this configuration.
Link copied to clipboard
Sets the configurations which this configuration extends from.
Link copied to clipboard
Sets the transitivity of this configuration.
Link copied to clipboard
Sets the value returned by isVisible.
Link copied to clipboard
Tells that this configuration, when resolved, should resolve versions consistently from the resolution result of another resolvable configuration.
Link copied to clipboard
Link copied to clipboard
Execute the given action before the configuration first participates in dependency resolution.