Interface HasKotlinDependencies
-
- All Implemented Interfaces:
public interface HasKotlinDependenciesContains all the configurable Kotlin dependencies for a Kotlin DSL entity, like an instance of
KotlinSourceSet.
-
-
Method Summary
Modifier and Type Method Description abstract Unitdependencies(Function1<KotlinDependencyHandler, Unit> configure)Configures all dependencies for this entity. abstract Unitdependencies(Action<KotlinDependencyHandler> configure)Configures all dependencies for this entity. abstract StringgetApiConfigurationName()The name of the Gradle Configuration that contains apidependencies.abstract StringgetImplementationConfigurationName()The name of the Gradle Configuration that contains implementationdependencies.abstract StringgetCompileOnlyConfigurationName()The name of the Gradle Configuration containing compileOnlydependencies.abstract StringgetRuntimeOnlyConfigurationName()The name of the Gradle Configuration containing runtimeOnlydependencies.-
-
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
apidependencies.The Gradle
apiconfiguration 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
implementationdependencies.The Gradle
implementationconfiguration 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
compileOnlydependencies.The Gradle
compileOnlyconfiguration 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
runtimeOnlydependencies.The Gradle
runtimeOnlyconfiguration 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.
-
-
-
-