Lines Matching full:kotlin
1 # Kotlin multiplatform / multi-format reflectionless serialization
3 [](https://kotlinlang.org/docs/components-stabil…
7 [](http://kotlinlang.org)
12 Kotlin serialization consists of a compiler plugin, that generates visitor code for serializable cl…
15 * Supports Kotlin classes marked as `@Serializable` and standard collections.
36 * [Kotlin Serialization Guide](docs/serialization-guide.md)
45 ```kotlin
54 val data = Project("kotlinx.serialization", "Kotlin")
56 println(string) // {"name":"kotlinx.serialization","language":"Kotlin"}
59 println(obj) // Project(name=kotlinx.serialization, language=Kotlin)
68 {"name":"kotlinx.serialization","language":"Kotlin"}
69 Project(name=kotlinx.serialization, language=Kotlin)
72 **Read the [Kotlin Serialization Guide](docs/serialization-guide.md) for all details.**
78 ….org/plugin/org.jetbrains.kotlin.plugin.serialization) of the serialization plugin are released in…
80 Using Kotlin Serialization requires Kotlin compiler `1.4.0` or higher.
81 Make sure you have the corresponding Kotlin plugin installed in the IDE, no additional plugins for …
91 You can set up the serialization plugin with the Kotlin plugin using the
94 Kotlin DSL:
96 ```kotlin
98 kotlin("jvm") version "1.9.22" // or kotlin("multiplatform") or any other kotlin plugin
99 kotlin("plugin.serialization") version "1.9.22"
107 id 'org.jetbrains.kotlin.multiplatform' version '1.9.22'
108 id 'org.jetbrains.kotlin.plugin.serialization' version '1.9.22'
112 > Kotlin versions before 1.4.0 are not supported by the stable release of Kotlin serialization.
119 Kotlin DSL:
121 ```kotlin
127 classpath(kotlin("gradle-plugin", version = kotlinVersion))
128 classpath(kotlin("serialization", version = kotlinVersion))
141 classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
149 apply plugin: 'kotlin' // or 'kotlin-multiplatform' for multiplatform projects
159 Kotlin DSL:
161 ```kotlin
251 Most of the modules are also available for Kotlin/JS and Kotlin/Native.
265 Ensure the proper version of Kotlin and serialization version:
269 <kotlin.version>1.9.22</kotlin.version>
274 Add serialization plugin to Kotlin compiler plugin:
280 <groupId>org.jetbrains.kotlin</groupId>
281 <artifactId>kotlin-maven-plugin</artifactId>
282 <version>${kotlin.version}</version>
299 <groupId>org.jetbrains.kotlin</groupId>
300 <artifactId>kotlin-maven-serialization</artifactId>
301 <version>${kotlin.version}</version>
321 To setup the Kotlin compiler plugin for Bazel, follow [the