api / org.gradle.language / LibraryDependencies

LibraryDependencies

@Incubating interface LibraryDependencies : ComponentDependencies

Allows the API and implementation dependencies of a library to be specified.

Since
4.6

Functions

api

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

Adds an API dependency to this library. An API dependency is made visible to consumers that are compiled against this component.

Inherited Functions

implementation

abstract fun implementation(notation: Any): Unit
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.