703d715334
Breaking changes in compiler plugin: * Remove java.Serializable supertype * Move serializer impl from companion to special inner class * Add generic serializer fields in $serializer and serializer getter in companion kotlin.Pair serializer Generating getter also for non-generic serializers Generic serializers in JS
37 lines
989 B
Kotlin
37 lines
989 B
Kotlin
|
|
description = "Kotlin Serialization Compiler Plugin"
|
|
|
|
apply { plugin("kotlin") }
|
|
|
|
dependencies {
|
|
compileOnly(ideaSdkCoreDeps("intellij-core"))
|
|
compileOnly(project(":jps-plugin"))
|
|
compileOnly(project(":compiler:plugin-api"))
|
|
compileOnly(project(":compiler:frontend"))
|
|
compileOnly(project(":compiler:backend"))
|
|
compileOnly(project(":js:js.frontend"))
|
|
compileOnly(project(":js:js.translator"))
|
|
|
|
runtime(projectRuntimeJar(":kotlin-compiler"))
|
|
runtime(projectDist(":kotlin-stdlib"))
|
|
// val compileOnly by configurations
|
|
// val runtime by configurations
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" {}
|
|
}
|
|
|
|
val jar = runtimeJar {
|
|
from(fileTree("$projectDir/src")) { include("META-INF/**") }
|
|
}
|
|
|
|
val serialPluginDir: File by rootProject.extra
|
|
dist(targetDir = File(serialPluginDir,"lib"), targetName = the<BasePluginConvention>().archivesBaseName.removePrefix("kotlin-") + ".jar")
|
|
|
|
ideaPlugin {
|
|
from(jar)
|
|
rename("^kotlin-", "")
|
|
}
|