api / org.gradle.language / ComponentDependencies / implementation

implementation

abstract fun implementation(notation: Any): Unit

Adds an implementation dependency to this component. An implementation dependency is not visible to consumers that are compiled against this component.

Parameters

notation - The dependency notation, as per org.gradle.api.artifacts.dsl.DependencyHandler#create(Object).

abstract fun implementation(notation: Any, action: Action<in ExternalModuleDependency>): Unit

Adds an implementation dependency to this component. An implementation dependency is not visible to consumers that are compiled against this component.

Parameters

notation - The dependency notation, as per org.gradle.api.artifacts.dsl.DependencyHandler#create(Object).

action - The action to run to configure the dependency.