Resolve explicit Gradle dependencies through graph actions
gradle_dependencies can acquire native POM, parent, BOM and Gradle module metadata through graph actions and select dependencies in Starlark without invoking Gradle's solver. Each configuration converges independently, so a ready consumer can start while unrelated metadata is still being acquired. Selected JARs remain whole and checksum-verified.
Repository metadata observations use explicit refresh generations and conditional cache establishment. Settled graphs replay for read-only queries and affected tests. Optional lock-update targets stage native-compatible lockfiles with original-input guards; applying a proposal remains an explicit operation.
Selected AARs use deferred archive discovery rather than assuming a mandatory classes.jar. Supported archives expose classes, embedded JARs, assets and native libraries; resources, manifest merging, consumer rules and unknown entries fail explicitly. Reviewed verification-trust additions can be staged with lock updates and original-input guards, never enrolled automatically from downloaded bytes.
Standard Java variant matching includes compatible JVM versions, API/runtime fallback, JAR compatibility, bundling and environment preferences. Restricted native declaration evaluation can obtain requirements, repositories, catalog references and consumer attributes from a single Gradle 8.14.3 Java-library project. The evaluator runs uncached under write and network confinement; Gradle never selects production dependencies. Native-declaration affected-test queries currently fail closed rather than replaying incomplete observations.
Native evaluation uses an exact staged copy of the declared source bytes. Removed inputs cannot survive in the next staged tree. Staging does not restrict arbitrary reads by executable build scripts, so native-derived lock proposals are rejected until complete input provenance is available. Explicit declared and repository modes still support guarded proposals. Project-local file repositories retain their original location; external native file repositories require explicit repository mode.
Automatic native project discovery, dynamic version discovery, custom variant rules and full Android AAR transformation remain unsupported. Applied scripts and pending lazy artifact-type attributes are rejected. Unsupported native rules fail instead of being approximated.
Native declarations support standard Gradle dependency locking in DEFAULT and STRICT modes. Struo enforces configuration pins and complete closure in locked mode; lenient policies, ignored dependencies and custom native lock locations fail explicitly.
Inherited external dependency constraints participate in rich version selection without downloading unused modules. Project, forced and attributed constraints remain unsupported.
See gradle_dependencies for configuration and limits.