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
+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()
}