public interface NativeLibraryComponentDependencies extends LibraryComponentDependencies, NativeComponentDependencies, ComponentDependencies, NativeLibraryDependencies
Modifier and Type | Method and Description |
---|---|
default void |
api(Object notation,
groovy.lang.Closure<Void> closure)
Adds an API dependency to this library.
|
default void |
implementation(Object notation,
groovy.lang.Closure<Void> closure)
Adds an implementation dependency to this component.
|
api, api, getApi, getImplementation, implementation, implementation
api, api
compileOnly, compileOnly, compileOnly, getCompileOnly, getImplementation, getLinkOnly, getRuntimeOnly, implementation, implementation, linkOnly, linkOnly, linkOnly, runtimeOnly, runtimeOnly, runtimeOnly
default void api(Object notation, @DelegatesTo(value=org.gradle.api.artifacts.ModuleDependency.class,strategy=1) groovy.lang.Closure<Void> closure)
api
in interface LibraryComponentDependencies
api
in interface NativeLibraryDependencies
notation
- The dependency notation, as per DependencyHandler.create(Object)
.closure
- The closure to run to configure the dependency (project dependencies are ProjectDependency
and external dependencies are ExternalModuleDependency
).default void implementation(Object notation, @DelegatesTo(value=org.gradle.api.artifacts.ModuleDependency.class,strategy=1) groovy.lang.Closure<Void> closure)
implementation
in interface LibraryComponentDependencies
implementation
in interface NativeComponentDependencies
notation
- The dependency notation, as per DependencyHandler.create(Object)
.closure
- The closure to run to configure the dependency (project dependencies are ProjectDependency
and external dependencies are ExternalModuleDependency
).