Interface HasKotlinDependencies
-
- All Implemented Interfaces:
public interface HasKotlinDependencies
Contains all the configurable Kotlin dependencies for a Kotlin DSL entity, like an instance of
KotlinSourceSet
.
-
-
Method Summary
Modifier and Type Method Description abstract Unit
dependencies(Function1<KotlinDependencyHandler, Unit> configure)
Configures all dependencies for this entity. abstract Unit
dependencies(Action<KotlinDependencyHandler> configure)
Configures all dependencies for this entity. abstract String
getApiConfigurationName()
The name of the Gradle Configuration that contains api
dependencies.abstract String
getImplementationConfigurationName()
The name of the Gradle Configuration that contains implementation
dependencies.abstract String
getCompileOnlyConfigurationName()
The name of the Gradle Configuration containing compileOnly
dependencies.abstract String
getRuntimeOnlyConfigurationName()
The name of the Gradle Configuration containing runtimeOnly
dependencies.-
-
Method Detail
-
dependencies
abstract Unit dependencies(Function1<KotlinDependencyHandler, Unit> configure)
Configures all dependencies for this entity.
-
dependencies
abstract Unit dependencies(Action<KotlinDependencyHandler> configure)
Configures all dependencies for this entity.
-
getApiConfigurationName
abstract String getApiConfigurationName()
The name of the Gradle Configuration that contains
api
dependencies.The Gradle
api
configuration should be used to declare dependencies which are exported by the project API.This Gradle configuration is not meant to be resolved.
-
getImplementationConfigurationName
abstract String getImplementationConfigurationName()
The name of the Gradle Configuration that contains
implementation
dependencies.The Gradle
implementation
configuration should be used to declare dependencies which are internal to the component (internal APIs).This Gradle configuration is not meant to be resolved.
-
getCompileOnlyConfigurationName
abstract String getCompileOnlyConfigurationName()
The name of the Gradle Configuration containing
compileOnly
dependencies.The Gradle
compileOnly
configuration should be used to declare dependencies that participate in compilation, but who need to be added explicitly by consumers at runtime.This Gradle configuration is not meant to be resolved.
-
getRuntimeOnlyConfigurationName
abstract String getRuntimeOnlyConfigurationName()
The name of the Gradle Configuration containing
runtimeOnly
dependencies.The Gradle
runtimeOnly
configuration should be used to declare dependencies that don't participate in compilation, but who are added at runtime.This Gradle configuration is not meant to be resolved.
-
-
-
-