From baf93a6ff0773a936a43596434a709a8097a7456 Mon Sep 17 00:00:00 2001 From: Ilya Matveev Date: Wed, 17 Oct 2018 12:48:18 +0700 Subject: [PATCH] Mention the serialization plugin in the GRADLE_PLUGIN.md (#2217) --- GRADLE_PLUGIN.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/GRADLE_PLUGIN.md b/GRADLE_PLUGIN.md index 75b6be93a98..29bc1645124 100644 --- a/GRADLE_PLUGIN.md +++ b/GRADLE_PLUGIN.md @@ -335,6 +335,25 @@ components.main { +### 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: + +
+ +```groovy +apply plugin: 'org.jetbrains.kotlin.platform.native' +apply plugin: 'kotlinx-serialization-native' + +dependencies { + implementation 'org.jetbrains.kotlinx:kotlinx-serialization-runtime-native' +} +``` + +
+ +The the [example project](https://github.com/ilmat192/kotlin-native-serialization-sample) for details. ### DSL example