Build: Introduce embedded configuration used for fatJars
This commit is contained in:
@@ -97,7 +97,6 @@ val projectsToShadow by extra(listOf(
|
||||
emptyArray<String>()
|
||||
))
|
||||
|
||||
val embedded by configurations.creating // PILL: used in pill importer
|
||||
val libraries by configurations.creating
|
||||
val jpsPlugin by configurations.creating
|
||||
|
||||
@@ -137,12 +136,7 @@ dependencies {
|
||||
}
|
||||
|
||||
val jar = runtimeJar {
|
||||
dependsOn(embedded)
|
||||
from("$rootDir/resources/kotlinManifest.properties")
|
||||
from {
|
||||
embedded.files.map(::zipTree)
|
||||
}
|
||||
|
||||
archiveName = "kotlin-plugin.jar"
|
||||
}
|
||||
|
||||
|
||||
@@ -22,15 +22,14 @@ val projectsToShadow = listOf(
|
||||
|
||||
dependencies {
|
||||
projectsToShadow.forEach {
|
||||
embeddedComponents(project(it)) { isTransitive = false }
|
||||
embedded(project(it)) { isTransitive = false }
|
||||
}
|
||||
|
||||
embeddedComponents(projectRuntimeJar(":kotlin-daemon-client"))
|
||||
embedded(projectRuntimeJar(":kotlin-daemon-client"))
|
||||
}
|
||||
|
||||
runtimeJar {
|
||||
manifest.attributes["Main-Class"] = "org.jetbrains.kotlin.runner.Main"
|
||||
manifest.attributes["Class-Path"] = "kotlin-stdlib.jar"
|
||||
from(files("$rootDir/resources/kotlinManifest.properties"))
|
||||
fromEmbeddedComponents()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user