KotlinDependencies

interface KotlinDependencies : Dependencies, PlatformDependencyModifiers

A dependency container for the different scopes that Kotlin projects can have.

Since

2.2.20

Properties

Link copied to clipboard
abstract val api: DependencyCollector

Add a dependency to the commonMain source set's api configuration.

Link copied to clipboard
abstract val compileOnly: DependencyCollector

Add a dependency to the commonMain source set's compileOnly configuration.

Link copied to clipboard
abstract val implementation: DependencyCollector

Add a dependency to the commonMain source set's implementation configuration.

Link copied to clipboard
abstract val runtimeOnly: DependencyCollector

Add a dependency to the commonMain source set's runtimeOnly configuration.

Link copied to clipboard
abstract val testCompileOnly: DependencyCollector

Add a dependency to the commonTest source set's compileOnly configuration.

Link copied to clipboard
abstract val testImplementation: DependencyCollector

Add a dependency to the commonTest source set's implementation configuration.

Link copied to clipboard
abstract val testRuntimeOnly: DependencyCollector

Add a dependency to the commonTest source set's runtimeOnly configuration.

Functions

Link copied to clipboard
abstract fun kotlin(module: String): Dependency

Generates a org.jetbrains.kotlin:kotlin-${module} dependency.

abstract fun kotlin(module: String, version: String?): Dependency

Generates a org.jetbrains.kotlin:kotlin-${module}:${version} dependency.