Mention the serialization plugin in the GRADLE_PLUGIN.md (#2217)

This commit is contained in:
Ilya Matveev
2018-10-17 12:48:18 +07:00
committed by GitHub
parent b2fa9df629
commit baf93a6ff0
+19
View File
@@ -335,6 +335,25 @@ components.main {
</div>
### Serialization plugin
The plugin is shipped with a customized version of the `kotlinx.serialization` plugin. To use it you don't have to
add new buildscript dependencies, just apply the plugins and add a dependency on the serialization library:
<div class="sample" markdown="1" theme="idea" mode="groovy">
```groovy
apply plugin: 'org.jetbrains.kotlin.platform.native'
apply plugin: 'kotlinx-serialization-native'
dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-runtime-native'
}
```
</div>
The the [example project](https://github.com/ilmat192/kotlin-native-serialization-sample) for details.
### DSL example