For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

DependencyLockingHandler

@ServiceScope(value = Project::class)
interface DependencyLockingHandler(source)

A DependencyLockingHandler manages the behaviour and configuration of dependency locking.

Since

4.8

Functions

Link copied to clipboard
Allows to configure dependencies that will be ignored in the lock state.
Link copied to clipboard
Allows to configure the file used for saving lock state Make sure the lock file is unique per project and separate between the buildscript and project itself.
Link copied to clipboard
abstract fun getLockMode(): Property<LockMode>
Allows to query the lock mode currently configured
Link copied to clipboard
abstract fun lockAllConfigurations()
Convenience method for doing: configurations.all { resolutionStrategy.
Link copied to clipboard
Convenience method for doing: configurations.all { resolutionStrategy.