2509dfb287
now regular, unshaded libs, are named with suffix `-unshaded`, while former `-embeddable` ones named without any suffix. This will encoursge use of the shaded libs by default, avoiding conflicts with 3-party libs packed into the `kotlin-compiler`. Note, that only the "frontline" libs are renamed to avoid switching problems, the ones that not normally used directly are left as is, including the `kotlin-compiler` itself.
26 lines
719 B
Kotlin
26 lines
719 B
Kotlin
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
|
|
plugins { java }
|
|
|
|
description = "Kotlin Compiler Infrastructure for Scripting for embeddable compiler"
|
|
|
|
val packedJars by configurations.creating
|
|
dependencies {
|
|
packedJars(project(":kotlin-scripting-compiler-impl-unshaded")) { isTransitive = false }
|
|
runtime(project(":kotlin-scripting-common"))
|
|
runtime(project(":kotlin-scripting-jvm"))
|
|
runtime(kotlinStdlib())
|
|
runtime(commonDep("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) { isTransitive = false }
|
|
}
|
|
|
|
publish()
|
|
|
|
noDefaultJar()
|
|
runtimeJar(rewriteDepsToShadedCompiler(
|
|
tasks.register<ShadowJar>("shadowJar") {
|
|
from(packedJars)
|
|
}
|
|
))
|
|
sourcesJar()
|
|
javadocJar()
|