0f41dc814f
also refactor some locally defined tasks to the creation avoidance API
46 lines
1019 B
Groovy
46 lines
1019 B
Groovy
apply plugin: 'kotlin'
|
|
apply plugin: 'jps-compatible'
|
|
|
|
configureJvmProject(project)
|
|
configurePublishing(project)
|
|
|
|
pill {
|
|
variant = 'FULL'
|
|
}
|
|
|
|
compileJava {
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
options.fork = false
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly project(':kotlin-gradle-plugin')
|
|
compileOnly project(':kotlin-gradle-plugin-api')
|
|
|
|
compileOnly kotlinStdlib()
|
|
compileOnly project(path: ':kotlin-compiler-embeddable', configuration: 'runtimeJar')
|
|
|
|
embedded(project(":kotlinx-serialization-compiler-plugin")) { transitive = false }
|
|
}
|
|
|
|
jar {
|
|
manifestAttributes(manifest, project)
|
|
}
|
|
|
|
ArtifactsKt.runtimeJar(project, EmbeddableKt.rewriteDefaultJarDepsToShadedCompiler(project, {}), {})
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
}
|
|
|
|
javadocJar()
|
|
|
|
pluginBundle {
|
|
plugins {
|
|
kotlinSerialization {
|
|
id = 'org.jetbrains.kotlin.plugin.serialization'
|
|
description = displayName = 'Kotlin compiler plugin for kotlinx.serialization library'
|
|
}
|
|
}
|
|
} |