gradle_lock_update
Stage a native Gradle lockfile update from settled configuration selections.
Enable lock_proposal = true with lock_mode = "update" in declared or repository mode on gradle_dependencies to expose <owner>.lock-update. Native declaration mode rejects proposals because executable evaluation lacks complete input provenance. Building a supported proposal writes a proposed native lockfile and proposal.json into target outputs, never into the source workspace. Explicit struo edit sources validation and application use the shared guarded publication contract.
The selected configurations replace their previous entries. Unselected configurations and native empty-configuration entries remain intact. Explicit remove_configurations entries remove obsolete configurations; removing the last one stages native lockfile deletion. Exact original native inputs and graph configuration preimages guard publication against concurrent edits. Declare an existing lockfile in the owner's inputs. If the lockfile does not exist, the proposal requires it to remain absent until application; a concurrently created file rejects publication. Reviewed verification_additions on the owner stage native verification bytes in the same guarded proposal. Verification trust is never enrolled automatically from downloads.
| Attribute | Type | Required | Description |
|---|---|---|---|
destination | string | yes | Workspace-relative native lockfile destination |
previous | string | no | Exact original native lockfile bytes; omit only for a previously absent lockfile |
remove_configurations | list<string> | no | Explicit obsolete configurations to remove |
verification_update | map<string,any> | no | Resolver-owned destination, original bytes or absence, and proposed native verification XML |
reads | list<any> | yes | Original semantic input preconditions |
The deps role consumes gradle_classpath providers with settled coordinates. The build capability exposes the default output group. Use the dependency owner's generated target rather than constructing this target manually.