Samuel Michael
12/06/2020, 3:48 AM--P plugin:serializationrnett
12/06/2020, 6:27 AMSamuel Michael
12/06/2020, 6:48 AMNikky
12/06/2020, 5:25 PMkotlinc -Xplugin /path/to/serializationplugin + the usual argumentsNikky
12/06/2020, 5:26 PMKotlinPaths.Jar.SerializationPlugin is in that code.. i assume it is bundled in the kotlin install along with kotlinc thoughSamuel Michael
12/06/2020, 5:26 PM@file:CompilerOptions("-Xplugin kotlinx-serialization-compiler.jar")
I tried from command line and using scripting annotation. Think I 'm still missing somethingSamuel Michael
12/06/2020, 5:29 PMBen Woodworth
12/08/2020, 4:18 AM#!/usr/bin/env -S kotlinc -script -Xplugin="${KOTLIN_HOME}/lib/kotlinx-serialization-compiler-plugin.jar" --Ben Woodworth
12/08/2020, 4:19 AM./my-script.main.kts)Samuel Michael
12/08/2020, 6:56 PM@Serialize annotation for my data class. Maybe you can post a minimal example of how you are using it? I added the shebang and executed from command line as described.rnett
12/09/2020, 12:14 AM${KOTLIN_HOME}/lib/kotlinx-serialization-compiler-plugin.jar exist? Does your code work in a non-script project?Ben Woodworth
12/09/2020, 1:19 AMecho $KOTLIN_HOME and make sure it prints a path.