How do I add kotlinx serialization to a subproject...
# serialization
v
How do I add kotlinx serialization to a subproject? I think I need to add it to build.gradle.kts
subprojects { apply { plugin(...) } }
but that certainly doesn't work. I don't even know what the plugin ID is. NOTE: nothing to do with multiplatform/mobile/iOS; this is a libGDX game project.
Finally fixed it. Needed to add `
Copy code
apply {
   plugin("kotlinx-serialization")
}
to the sub-module's build.gradle.kts file, and then do a clean build. Gradle is obtuse, isn't it?
e
use the current plugin application style:
Copy code
plugins {
    id 'org.jetbrains.kotlin.plugin.serialization'
}
or
Copy code
plugins {
    kotlin("plugin.serialization")
}
if you're using the Kotlin Gradle DSL