Pill: Remove unused EmbeddedComponents class

This commit is contained in:
Yan Zhulanow
2020-09-04 05:15:51 +09:00
parent a00f3b97c5
commit 61cd97b340
2 changed files with 4 additions and 10 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ fun runPillTask(taskName: String) {
val platformDir = IntellijRootUtils.getIntellijRootDir(project)
val resourcesDir = File(project.projectDir, "resources")
runMethod.invoke(null, project.rootProject, taskName, platformDir, resourcesDir, EmbeddedComponents.CONFIGURATION_NAME)
runMethod.invoke(null, project.rootProject, taskName, platformDir, resourcesDir)
}
val jar: Jar by tasks
@@ -8,21 +8,15 @@ package org.jetbrains.kotlin.pill
import org.gradle.api.Project
import java.io.File
object EmbeddedComponents {
lateinit var CONFIGURATION_NAME: String
}
@Suppress("unused")
object PillImporter {
private val TASKS = mapOf(
"pill" to JpsCompatiblePluginTasks::pill,
"unpill" to JpsCompatiblePluginTasks::unpill
"pill" to JpsCompatiblePluginTasks::pill,
"unpill" to JpsCompatiblePluginTasks::unpill
)
@JvmStatic
fun run(rootProject: Project, taskName: String, platformDir: File, resourcesDir: File, embeddedConfigurationName: String) {
EmbeddedComponents.CONFIGURATION_NAME = embeddedConfigurationName
fun run(rootProject: Project, taskName: String, platformDir: File, resourcesDir: File) {
val tasks = JpsCompatiblePluginTasks(rootProject, platformDir, resourcesDir)
val task = TASKS[taskName] ?: error("Unknown task $taskName, available tasks: " + TASKS.keys.joinToString())
task(tasks)