public interface DependencyLockingHandler
DependencyLockingHandler
manages the behaviour and configuration of dependency locking.Modifier and Type | Method | Description |
---|---|---|
RegularFileProperty |
getLockFile() |
Allows to configure the file used for saving lock state
|
Property<LockMode> |
getLockMode() |
Allows to query the lock mode currently configured
|
void |
lockAllConfigurations() |
Convenience method for doing:
configurations.all {
resolutionStrategy.activateDependencyLocking()
}
|
void |
unlockAllConfigurations() |
Convenience method for doing:
configurations.all {
resolutionStrategy.deactivateDependencyLocking()
}
|
void lockAllConfigurations()
@Incubating void unlockAllConfigurations()
@Incubating Property<LockMode> getLockMode()
@Incubating RegularFileProperty getLockFile()
Make sure the lock file is unique per project and separate between the buildscript and project itself.
This requires opting in the support for per project single lock file.