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 platformDir = IntellijRootUtils.getIntellijRootDir(project)
val resourcesDir = File(project.projectDir, "resources") 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 val jar: Jar by tasks
@@ -8,21 +8,15 @@ package org.jetbrains.kotlin.pill
import org.gradle.api.Project import org.gradle.api.Project
import java.io.File import java.io.File
object EmbeddedComponents {
lateinit var CONFIGURATION_NAME: String
}
@Suppress("unused") @Suppress("unused")
object PillImporter { object PillImporter {
private val TASKS = mapOf( private val TASKS = mapOf(
"pill" to JpsCompatiblePluginTasks::pill, "pill" to JpsCompatiblePluginTasks::pill,
"unpill" to JpsCompatiblePluginTasks::unpill "unpill" to JpsCompatiblePluginTasks::unpill
) )
@JvmStatic @JvmStatic
fun run(rootProject: Project, taskName: String, platformDir: File, resourcesDir: File, embeddedConfigurationName: String) { fun run(rootProject: Project, taskName: String, platformDir: File, resourcesDir: File) {
EmbeddedComponents.CONFIGURATION_NAME = embeddedConfigurationName
val tasks = JpsCompatiblePluginTasks(rootProject, platformDir, resourcesDir) val tasks = JpsCompatiblePluginTasks(rootProject, platformDir, resourcesDir)
val task = TASKS[taskName] ?: error("Unknown task $taskName, available tasks: " + TASKS.keys.joinToString()) val task = TASKS[taskName] ?: error("Unknown task $taskName, available tasks: " + TASKS.keys.joinToString())
task(tasks) task(tasks)