# `gradle_classpath`

The selected Maven archives of one locked Gradle configuration.

Emitted by [`gradle_dependencies`](/reference/prelude/gradle_dependencies) as `<owner>.configuration.<configuration>`. It depends on the configuration's [`maven_artifact`](/reference/prelude/maven_artifact) targets and provides `java_library` with `transitive_compile_jars` and `transitive_runtime_jars`. Duplicate JAR paths are removed. Metadata-only modules contribute no JAR.

Supported AARs contribute optional classes and embedded JARs, plus `transitive_asset_roots`, `transitive_asset_files` and `transitive_android_native_libraries`. The classpath forwards these Android providers without discarding asset-only or native-only archives. Resources, manifest merging and consumer rules remain unsupported and fail during contents discovery.

Consumers declare separate compile and runtime dependency roles using the corresponding configuration targets. They do not need to depend on the whole dependency owner. This allows a compile-classpath consumer to start while artifacts used only by another configuration are still fetching.

| Attribute | Type | Required | Description |
| --- | --- | --- | --- |
| `configuration` | string | yes | Native Gradle configuration name |
| `_selected_coordinates` | list&lt;string&gt; | no | Resolver-owned settled coordinates used by explicit native lock proposals |
| `_affected_srcs` | list&lt;string&gt; | no | Resolver-owned lock, verification and selected catalog paths for conservative affected-test selection |

The `deps` role accepts `maven_artifact` providers. The `build` capability exposes `default` and `jar` output groups. Compatibility-import classpaths are coordinate-sorted. With explicit selection requirements, Struo preserves the dependency traversal order after version and variant convergence. The lockfile alone does not supply dependency edges or native variant selections.
