Build: Centralize build logic for kotlin-plugin in :prepare:idea-plugin

This commit is contained in:
Vyacheslav Gerasimov
2019-03-29 18:01:04 +03:00
parent 384f407af6
commit 92248d609f
10 changed files with 47 additions and 53 deletions
+5 -8
View File
@@ -1,9 +1,7 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
description = "Kotlin JPS plugin"
plugins {
`java-base`
java
id("pill-configurable")
}
@@ -26,14 +24,13 @@ dependencies {
projectsToShadow.forEach {
embeddedComponents(project(it)) { isTransitive = false }
}
embeddedComponents(projectRuntimeJar(":kotlin-daemon-client"))
}
runtimeJar<ShadowJar>(task<ShadowJar>("jar")) {
manifest.attributes.put("Main-Class", "org.jetbrains.kotlin.runner.Main")
manifest.attributes.put("Class-Path", "kotlin-stdlib.jar")
runtimeJar {
manifest.attributes["Main-Class"] = "org.jetbrains.kotlin.runner.Main"
manifest.attributes["Class-Path"] = "kotlin-stdlib.jar"
from(files("$rootDir/resources/kotlinManifest.properties"))
fromEmbeddedComponents()
}
ideaPlugin("lib/jps")