Build: Introduce embedded configuration used for fatJars

This commit is contained in:
Vyacheslav Gerasimov
2019-04-09 22:05:07 +03:00
parent a0adc97768
commit adb896d74c
12 changed files with 63 additions and 30 deletions
-6
View File
@@ -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"
}
+2 -3
View File
@@ -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()
}