Hi all, how do I specificy ksp compilers in Kotlin...
# ksp
d
Hi all, how do I specificy ksp compilers in Kotlin Multiplatform projects? Via the old
dependencies { ksp(my.lib) }
block or is there any syntax available using the multiplatform source set? Using
kotlin { sourceSets { commonMain.dependencies { ksp(my.lib) }}
or
kotlin { sourceSets { commonMain.dependencies { val kspDep by configurations; kspDep(my.lib) }}
did not work (the former finds the
KspExtension
configured by the KSP plugin.
v
try in general dependencies section add:
add("ksp[Target]", processor)
ie
add("kspJvm", "com.example.processor")
👍 1