mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
The previous fix was insufficient to fix gradle substitution in MPP projects (https://github.com/gradle/gradle/issues/14017)
26 lines
701 B
Kotlin
26 lines
701 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")) { isTransitive = false }
|
|
runtimeOnly(project(":kotlin-scripting-common"))
|
|
runtimeOnly(project(":kotlin-scripting-jvm"))
|
|
runtimeOnly(kotlinStdlib())
|
|
runtimeOnly(commonDep("org.jetbrains.kotlinx", "kotlinx-coroutines-core"))
|
|
}
|
|
|
|
publish()
|
|
|
|
noDefaultJar()
|
|
runtimeJar(rewriteDepsToShadedCompiler(
|
|
tasks.register<ShadowJar>("shadowJar") {
|
|
from(packedJars)
|
|
}
|
|
))
|
|
sourcesJar()
|
|
javadocJar()
|