Dependency Lock Plugin
A plugin that enables version locking for dependency declarations in a Gradle project. It enforces constraints based on a predefined "versions.lock" file, generates this file when needed, and integrates version locking into the project's dependency resolution process.
Key functionalities:
Registers configurations for managing all dependencies and for resolving classpath dependencies.
Configures a write task (
writeVersionsLocks) to generate a "versions.lock" file, capturing the resolved versions of dependencies.Applies constraints defined in the "versions.lock" file to the
lockConstraintsconfiguration.Ensures the
apiconfiguration in Java platform projects extends thelockConstraintsconfiguration when the plugin is applied.Coordinates dependency locking across multiple projects in a build via the DependencySupplierService.