For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

ExternalModuleDependencyVariantSpec

The specification of a dependency variant. Some dependencies can be fined tuned to select a particular variant. For example, one might want to select the test fixtures of a target component, or a specific classifier.

Since

6.8

Functions

Link copied to clipboard
abstract fun artifactType(artifactType: String)
Configures the artifact type of this dependency
Link copied to clipboard
abstract fun classifier(classifier: String)
Configures the classifier of this dependency
Link copied to clipboard
abstract fun platform()
Configures the dependency to select the "platform" variant.
Link copied to clipboard
abstract fun testFixtures()
Configures the dependency to select the test fixtures capability.