Hello, I am trying to create a gradle plugin that ...
# serialization
y
Hello, I am trying to create a gradle plugin that will generate files (serialized from data classes) from a gradle task that can run in another project. lets say that the classes that i am serializing are marked with some annotation 
@Annot
 and i find all the relevant classes with reflection in the gradle task (I made sure to depend on kotlin compile so that the binaries are created). The problem is that when I try to use
Copy code
val clazz: Class<*>
clazz.kotlin.serializer()
I get a
Serializer for class 'Type' is not found.
(Type is the actual class that I found and is annotated with
@Serializable
and
@Annot
. What am I missing? why can’t I access the class serializer with the gradle task?
solved my own issue if anyone comes across this and wonders how: look here or if you have a better solution I would be happy to hear.