JPS Build: rename packedJars property to embedded, get rid of ShadowJar
Configuration should have name "embedded" for IDEA import. ShadowJar doesn't required anymore as it is already embedded in default jar task.
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
import org.gradle.jvm.tasks.Jar
|
||||
|
||||
description = "Kotlin Scripting JVM host (for using with embeddable compiler)"
|
||||
|
||||
plugins { java }
|
||||
|
||||
val embedded by configurations.creating
|
||||
|
||||
dependencies {
|
||||
embedded(project(":kotlin-scripting-jvm-host")) { isTransitive = false }
|
||||
runtime(project(":kotlin-script-runtime"))
|
||||
@@ -26,12 +22,7 @@ sourceSets {
|
||||
|
||||
publish()
|
||||
|
||||
noDefaultJar()
|
||||
|
||||
runtimeJar(rewriteDepsToShadedCompiler(
|
||||
task<ShadowJar>("shadowJar") {
|
||||
from(embedded)
|
||||
}
|
||||
))
|
||||
val jar = tasks.getByName<Jar>("jar")
|
||||
runtimeJar(rewriteDepsToShadedCompiler(jar))
|
||||
sourcesJar()
|
||||
javadocJar()
|
||||
|
||||
Reference in New Issue
Block a user