diff --git a/prepare/kotlin-annotation-processing-embeddable/build.gradle.kts b/prepare/kotlin-annotation-processing-embeddable/build.gradle.kts index e7ea998d2fd..ccd904a4bf5 100644 --- a/prepare/kotlin-annotation-processing-embeddable/build.gradle.kts +++ b/prepare/kotlin-annotation-processing-embeddable/build.gradle.kts @@ -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") { - from(packedJars) - } -)) +val jar: Jar by tasks +runtimeJar(rewriteDepsToShadedCompiler(jar)) sourcesJar() + javadocJar()