public interface NativeComponentDependencies extends ComponentDependencies
Modifier and Type | Method and Description |
---|---|
void |
compileOnly(Object notation)
Adds an native compile only dependency to this component.
|
void |
compileOnly(Object notation,
Action<? super ModuleDependency> action)
Adds an native compile only dependency to this component.
|
default void |
compileOnly(Object notation,
groovy.lang.Closure<Void> closure)
Adds an native compile only dependency to this component.
|
DependencyBucket |
getCompileOnly()
Returns the compile only bucket of dependencies for this component.
|
DependencyBucket |
getImplementation()
Returns the implementation bucket of dependencies for this component.
|
DependencyBucket |
getLinkOnly()
Returns the link only bucket of dependencies for this component.
|
DependencyBucket |
getRuntimeOnly()
Returns the runtime only bucket of dependencies for this component.
|
void |
implementation(Object notation)
Adds an implementation dependency to this component.
|
void |
implementation(Object notation,
Action<? super ModuleDependency> action)
Adds an implementation dependency to this component.
|
default void |
implementation(Object notation,
groovy.lang.Closure<Void> closure)
Adds an implementation dependency to this component.
|
void |
linkOnly(Object notation)
Adds an native link only dependency to this component.
|
void |
linkOnly(Object notation,
Action<? super ModuleDependency> action)
Adds an native link only dependency to this component.
|
default void |
linkOnly(Object notation,
groovy.lang.Closure<Void> closure)
Adds an native link only dependency to this component.
|
void |
runtimeOnly(Object notation)
Adds an native runtime only dependency to this component.
|
void |
runtimeOnly(Object notation,
Action<? super ModuleDependency> action)
Adds an native runtime only dependency to this component.
|
default void |
runtimeOnly(Object notation,
groovy.lang.Closure<Void> closure)
Adds an native runtime only dependency to this component.
|
void implementation(Object notation)
notation
- The dependency notation, as per DependencyHandler.create(Object)
.void implementation(Object notation, Action<? super ModuleDependency> action)
notation
- The dependency notation, as per DependencyHandler.create(Object)
.action
- The action 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)
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
).void compileOnly(Object notation)
notation
- The dependency notation, as per DependencyHandler.create(Object)
.void compileOnly(Object notation, Action<? super ModuleDependency> action)
notation
- The dependency notation, as per DependencyHandler.create(Object)
.action
- The action to run to configure the dependency (project dependencies are ProjectDependency
and external dependencies are ExternalModuleDependency
).default void compileOnly(Object notation, @DelegatesTo(value=org.gradle.api.artifacts.ModuleDependency.class,strategy=1) groovy.lang.Closure<Void> closure)
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
).void linkOnly(Object notation)
notation
- The dependency notation, as per DependencyHandler.create(Object)
.void linkOnly(Object notation, Action<? super ModuleDependency> action)
notation
- The dependency notation, as per DependencyHandler.create(Object)
.action
- The action to run to configure the dependency (project dependencies are ProjectDependency
and external dependencies are ExternalModuleDependency
).default void linkOnly(Object notation, @DelegatesTo(value=org.gradle.api.artifacts.ModuleDependency.class,strategy=1) groovy.lang.Closure<Void> closure)
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
).void runtimeOnly(Object notation)
notation
- The dependency notation, as per DependencyHandler.create(Object)
.void runtimeOnly(Object notation, Action<? super ModuleDependency> action)
notation
- The dependency notation, as per DependencyHandler.create(Object)
.action
- The action to run to configure the dependency (project dependencies are ProjectDependency
and external dependencies are ExternalModuleDependency
).default void runtimeOnly(Object notation, @DelegatesTo(value=org.gradle.api.artifacts.ModuleDependency.class,strategy=1) groovy.lang.Closure<Void> closure)
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
).DependencyBucket getImplementation()
DependencyBucket
representing the implementation bucket of dependencies, never null.DependencyBucket getRuntimeOnly()
DependencyBucket
representing the runtime only bucket of dependencies, never null.DependencyBucket getCompileOnly()
DependencyBucket
representing the compile only bucket of dependencies, never null.DependencyBucket getLinkOnly()
DependencyBucket
representing the link only bucket of dependencies, never null.