Kotlin Serialization runtime library itself is a multiplatform project. To build library from the source run ./gradlew publishToMavenLocal
. After that, you can include this library in arbitrary projects like usual gradle dependency:
repositories { jcenter() mavenLocal() } dependencies { compile "org.jetbrains.kotlinx:kotlinx-serialization-runtime" }
master
branch of library should be binary compatible with latest available on bintary compiler plugin. In case you want to test some new features from other branches, which are still in development and may not be compatible in terms of bytecode produced by plugin, you'll need to build the plugin by yourself.
Compiler plugin for Gradle/Maven and IntelliJ plugin are hosted in a separate branch of Kotlin compiler.
Sources and steps to build it are located here.