Build tooling

Gradle dependency locking

Enables locking for project configurations; resolve and write locks deliberately. Static Gradle 9.2.0 example; Gradle execution unverified.

Formal Syntax & Structure

java syntaxjava
dependencyLocking { lockAllConfigurations() }

Working Example

Example Snippetjava
// Fragment: fictional dependencies in an approved local repository only.dependencies {    implementation(libs.book.format)    implementation(platform(libs.book.bom))    implementation(libs.book.parser)}dependencyLocking { lockAllConfigurations() }
Java Reference