apply

open override fun apply(target: Project)(source)

Applies the dependency lock plugin to the given project.

  • Registers internal configurations used to collect all dependencies and a resolvable classpath.

  • Creates the writeVersionsLocks task that writes a lock file at the root of the build.

  • On Java Platform projects, enables the write task and converts the lock file entries to constraints that are added to the platform's api configuration.