When I put kapt() the dependencies block of a sour...
# multiplatform
g
When I put kapt() the dependencies block of a sourceset I get the following error: Could not find method kapt() for arguments [project ‘:processor’] on object of type org.jetbrains.kotlin.gradle.plugin.mpp.DefaultKotlinDependencyHandler.
a
annotation processing isnt a thing for mpp
g
Why not?
a
its a feature of javac
g
Didn’t know that, makes sense then. Are you aware of another way to generate code per sourceset?
a
you can try a compiler plugin but that would be a very daunting task right now:

https://www.youtube.com/watch?v=w-GMlaziIyo

g
Thanks