sweetSpiProcessor

fun DependencyHandler.sweetSpiProcessor(): Dependency(source)

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

The version of the library is determined by the version of the plugin.

Usage:

// in build.gradle.kts

// don't forget to add an import
import dev.whyoleg.sweetspi.gradle.*

dependencies {
// for kotlin-jvm projects
ksp(sweetSpiProcessor())
// for kotlin-multiplatform projects
// Note: no need to add it to the `common` compilations, as it'd do nothing there
add("kspJvm", sweetSpiProcessor())
// if needed, `test` source sets support
add("kspJvmTest", sweetSpiProcessor())
// and for each other Kotlin target...
add("kspLinuxX64Test", sweetSpiProcessor())
}