Build: Use embedded configuration in kapt embeddable project

#KT-31047
This commit is contained in:
Vyacheslav Gerasimov
2019-04-21 16:50:49 +03:00
parent 82f9757138
commit 9f3495138f
@@ -1,5 +1,3 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.gradle.jvm.tasks.Jar
description = "Annotation Processor for Kotlin (for using with embeddable compiler)"
@@ -8,19 +6,15 @@ plugins {
`java`
}
val packedJars by configurations.creating
dependencies {
packedJars(project(":kotlin-annotation-processing")) { isTransitive = false }
embedded(project(":kotlin-annotation-processing")) { isTransitive = false }
}
publish()
runtimeJar(rewriteDepsToShadedCompiler(
task<ShadowJar>("shadowJar") {
from(packedJars)
}
))
val jar: Jar by tasks
runtimeJar(rewriteDepsToShadedCompiler(jar))
sourcesJar()
javadocJar()