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
|
||||
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user