Package-level declarations

Types

Link copied to clipboard
abstract class SweetSpiPlugin : Plugin<Project>

This plugin performs several checks that KSP is configured correctly.

Functions

Link copied to clipboard
fun DependencyHandler.sweetSpiProcessor(): Dependency

This method returns a dependency object for the sweetspi-processor which can be used to manually add dependency on it.

Link copied to clipboard
fun DependencyHandler.sweetSpiRuntime(): Dependency
fun KotlinDependencyHandler.sweetSpiRuntime(): Dependency

This method returns a dependency object for the sweetspi-runtime which can be used to manually add dependency on it.

Link copied to clipboard
fun KotlinCompilation<*>.withSweetSpi()

Adds the sweet-spi runtime and KSP processor dependencies to the specified Kotlin compilation.

fun KotlinProjectExtension.withSweetSpi(compilationFilter: (KotlinCompilation<*>) -> Boolean = { it.name.endsWith("main", ignoreCase = true) })

Adds the sweet-spi runtime and KSP processor dependencies to the compilations of all targets.

fun KotlinTarget.withSweetSpi(compilationFilter: (KotlinCompilation<*>) -> Boolean = { it.name.endsWith("main", ignoreCase = true) })

Adds the sweet-spi runtime and KSP processor dependencies to the compilations of this target.