LenientConfiguration

Resolved configuration that does not fail eagerly when some dependencies are not resolved, or some artifacts do not exist.

This is a legacy API. Avoid this class for new code. Lenient artifacts can be acquired through a lenient ArtifactView. This API will be deprecated and removed in future Gradle versions.

  • This class is not configuration-cache compatible.
  • Returned file sets do not track task dependencies.
  • The returned types do not reflect the variant-aware nature of the dependency resolution engine.

Functions

Link copied to clipboard
Returns all successfully resolved dependencies including transitive dependencies.
Link copied to clipboard
abstract fun getArtifacts(dependencySpec: Spec<in Dependency>): Set<ResolvedArtifact>
Gets successfully resolved artifacts.
Link copied to clipboard
abstract fun getFiles(): Set<File>
abstract fun getFiles(dependencySpec: Spec<in Dependency>): Set<File>
Returns successfully resolved files.
Link copied to clipboard
Returns successfully resolved direct dependencies.
Returns successfully resolved dependencies that match the given spec.
Link copied to clipboard
returns dependencies that were attempted to resolve but failed.