# LenientConfiguration

interface LenientConfiguration(source)

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

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