Files
kotlin-fork/prepare/kotlin-annotation-processing-embeddable/build.gradle.kts
T
Vyacheslav Gerasimov d32f6fb382 Build: Fix compatibility with shadow plugin
Apply java-base plugin since shadow task requires sourcesets
2019-02-18 19:58:56 +03:00

26 lines
517 B
Kotlin

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)"
plugins {
`java-base`
}
val packedJars by configurations.creating
dependencies {
packedJars(project(":kotlin-annotation-processing")) { isTransitive = false }
}
runtimeJar(rewriteDepsToShadedCompiler(
task<ShadowJar>("shadowJar") {
from(packedJars)
}
))
sourcesJar()
javadocJar()
publish()