You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Kotlin versions before 1.4.0 are not supported by the stable release of Kotlin serialization
112
+
> Kotlin versions before 1.4.0 are not supported by the stable release of Kotlin serialization.
110
113
111
-
#### Using `apply plugin` (the old way)
114
+
<details>
115
+
<summary>Using <code>apply plugin</code> (the old way)</summary>
112
116
113
117
First, you have to add the serialization plugin to your classpath as the other [compiler plugins](https://kotlinlang.org/docs/reference/compiler-plugins.html):
114
118
@@ -145,10 +149,11 @@ Then you can `apply plugin` (example in Groovy):
145
149
apply plugin: 'kotlin' // or 'kotlin-multiplatform' for multiplatform projects
146
150
apply plugin: 'kotlinx-serialization'
147
151
```
152
+
</details>
148
153
149
-
#### Dependency on the JSON library
154
+
#### 2) Dependency on the JSON library
150
155
151
-
After setting up the plugin one way or another, you have to add a dependency on the serialization library.
156
+
After setting up the plugin, you have to add a dependency on the serialization library.
152
157
Note that while the plugin has version the same as the compiler one, runtime library has different coordinates, repository and versioning.
0 commit comments