0f41dc814f
also refactor some locally defined tasks to the creation avoidance API
29 lines
505 B
Kotlin
29 lines
505 B
Kotlin
|
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
import org.gradle.jvm.tasks.Jar
|
|
|
|
description = "Kotlin Daemon (for using with embeddable compiler)"
|
|
|
|
plugins {
|
|
`java`
|
|
}
|
|
|
|
val packedJars by configurations.creating
|
|
|
|
dependencies {
|
|
packedJars(project(":kotlin-daemon")) { isTransitive = false }
|
|
}
|
|
|
|
publish()
|
|
|
|
noDefaultJar()
|
|
|
|
runtimeJar(rewriteDepsToShadedCompiler(
|
|
tasks.register<ShadowJar>("shadowJar") {
|
|
from(packedJars)
|
|
}
|
|
))
|
|
|
|
sourcesJar()
|
|
javadocJar()
|