Integrate serialization plugin into big Kotlin plugin

Split import handlers into multiple files
Add empty Maven handler for Android Studio

Add testRuntime dependency on kx-serialization-plugin for all modules which require compiler
plugins in test classpath
This commit is contained in:
Leonid Startsev
2018-09-05 16:03:16 +03:00
parent 087f60389a
commit dea69e4469
60 changed files with 117 additions and 184 deletions
-28
View File
@@ -42,31 +42,3 @@ If your maven build is failing with Out-Of-Memory errors, set JVM options for ma
MAVEN_OPTS="-Xmx2G"
## Kotlin serialization Gradle Plugin
First, build all the above. Then run `./gradlew :kotlinx-gradle-serialization-plugin:publishToMavenLocal` to install it to your local maven repository.
When it is installed in local maven repository, you can add it as a dependency in buildscript classpath and apply it:
```
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1-SNAPSHOT"
classpath "org.jetbrains.kotlinx:kotlinx-gradle-serialization-plugin:0.1"
}
}
apply plugin: 'kotlin'
apply plugin: 'kotlinx-serialization'
```
You can also obtain it from bintray: https://bintray.com/kotlin/kotlinx/kotlinx.serialization.plugin