Build: Use embedded configuration in kapt embeddable project
#KT-31047
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
||||||
import org.gradle.jvm.tasks.Jar
|
import org.gradle.jvm.tasks.Jar
|
||||||
|
|
||||||
description = "Annotation Processor for Kotlin (for using with embeddable compiler)"
|
description = "Annotation Processor for Kotlin (for using with embeddable compiler)"
|
||||||
@@ -8,19 +6,15 @@ plugins {
|
|||||||
`java`
|
`java`
|
||||||
}
|
}
|
||||||
|
|
||||||
val packedJars by configurations.creating
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
packedJars(project(":kotlin-annotation-processing")) { isTransitive = false }
|
embedded(project(":kotlin-annotation-processing")) { isTransitive = false }
|
||||||
}
|
}
|
||||||
|
|
||||||
publish()
|
publish()
|
||||||
|
|
||||||
runtimeJar(rewriteDepsToShadedCompiler(
|
val jar: Jar by tasks
|
||||||
task<ShadowJar>("shadowJar") {
|
runtimeJar(rewriteDepsToShadedCompiler(jar))
|
||||||
from(packedJars)
|
|
||||||
}
|
|
||||||
))
|
|
||||||
|
|
||||||
sourcesJar()
|
sourcesJar()
|
||||||
|
|
||||||
javadocJar()
|
javadocJar()
|
||||||
|
|||||||
Reference in New Issue
Block a user