ExternalDependency

constructor(module: String, group: String, name: String, version: String? = null, configuration: String, sourceSet: String? = null)(source)

Parameters

module

Gradle path of the module that declares this dependency, e.g. ":feature:login:ui".

group

Maven group, e.g. "androidx.core". Empty when the notation omits a group.

name

Artifact name, e.g. "core-ktx".

version

Declared version, e.g. "1.13.1". Null when the version is managed elsewhere (a BOM / platform, or a version-catalog alignment) and is not stated at the declaration site.

configuration

Gradle configuration name the dependency was declared on: "implementation", "api", "testImplementation", "commonMainImplementation", etc. The declaration type is recoverable from this string via isApi / isTest / isCompileOnly.

sourceSet

For KMP modules: the source set that owns this dependency, e.g. "commonMain", "androidMain". Null for standard Android/JVM configurations.