Can somebody give me an example of how to use `kot...
# serialization
j
Can somebody give me an example of how to use `kotlinx.serialization`: 0.8.3-rc13. With the kotlin-gradle dsl?
n
here is how you apply it as a plugin in gradle using the kotlin-dsl https://github.com/NikkyAI/PluginManagementTutorial#kotlinserialization the version number is not quiote updated anymore but usually you would refer to a
const val
in
buildSrc
there
j
Copy code
Plugin [id: 'kotlinx-serialization', version: '0.8.0-rc13', artifact: 'org.jetbrains.kotlin:kotlin-serialization:0.8.0-rc13'] was not found in any of the following sources:
Searched in the following repositories: BintrayJCenter Gradle Central Plugin Repository maven(http://dl.bintray.com/kotlin/kotlin-eap) maven2(https://kotlin.bintray.com/kotlin-eap) maven3(https://kotlin.bintray.com/kotlinx)
n
yeah the version i did not update.. it should be 0.8.3-eap13 i think
j
It should match ktolin plugin version
so the latest eap is
Copy code
1.3.0-rc-190
However thanks anyway. Very useful example (project configuration and versions are kinda mess in kotlin TBH, this helps a lot)