https://kotlinlang.org logo
#serialization
Title
# serialization
j

jcechace

10/22/2018, 12:35 PM
Can somebody give me an example of how to use `kotlinx.serialization`: 0.8.3-rc13. With the kotlin-gradle dsl?
n

Nikky

10/22/2018, 12:42 PM
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

jcechace

10/22/2018, 12:49 PM
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

Nikky

10/22/2018, 1:00 PM
yeah the version i did not update.. it should be 0.8.3-eap13 i think
j

jcechace

10/22/2018, 1:00 PM
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)
6 Views