Skip to content

Commit 9f34951

Browse files
committed
Build: Use embedded configuration in kapt embeddable project
#KT-31047
1 parent 82f9757 commit 9f34951

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
31
import org.gradle.jvm.tasks.Jar
42

53
description = "Annotation Processor for Kotlin (for using with embeddable compiler)"
@@ -8,19 +6,15 @@ plugins {
86
`java`
97
}
108

11-
val packedJars by configurations.creating
12-
139
dependencies {
14-
packedJars(project(":kotlin-annotation-processing")) { isTransitive = false }
10+
embedded(project(":kotlin-annotation-processing")) { isTransitive = false }
1511
}
1612

1713
publish()
1814

19-
runtimeJar(rewriteDepsToShadedCompiler(
20-
task<ShadowJar>("shadowJar") {
21-
from(packedJars)
22-
}
23-
))
15+
val jar: Jar by tasks
16+
runtimeJar(rewriteDepsToShadedCompiler(jar))
2417

2518
sourcesJar()
19+
2620
javadocJar()

0 commit comments

Comments
 (0)