Pill: Remove unused EmbeddedComponents class
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user