https://kotlinlang.org logo
p

Paul Woitaschek

03/20/2020, 9:49 AM
How can I add the serialization plugin to a kts script?
2
2
t

Tmpod

03/20/2020, 1:21 PM
Good question actually. I'd be interested in knowing how this can be achieved too.
m

mbonnin

03/23/2020, 5:30 PM
Yep, me too. I've been using moshi for json but if I could switch to serialization, I'd do it
t

Tmpod

03/24/2020, 11:16 PM
Anyone got this working? Ik you can refine the configurations taking annotations into consideration, but I'm not sure how to make the serialization plugin work with this. Does it even expose an API to call parts of it from code?
i

ilya.chernikov

03/25/2020, 8:16 AM
I think this is not possible for the moment, at least without hacking the scripting compiler. Seems like an oversight from our side. Please, file an issue, and we'll see what we can do about it.
t

Tmpod

03/25/2020, 3:21 PM
I opened an issue about this, which can be found here: https://youtrack.jetbrains.com/issue/KT-37766
👍 2