Wizard: flatten JVM targets
#KT-36267 fixed
This commit is contained in:
+3
-11
@@ -4,15 +4,6 @@ import org.jetbrains.kotlin.tools.projectWizard.plugins.kotlin.ModuleSubType
|
|||||||
import org.jetbrains.kotlin.tools.projectWizard.plugins.kotlin.ModuleType
|
import org.jetbrains.kotlin.tools.projectWizard.plugins.kotlin.ModuleType
|
||||||
|
|
||||||
object TargetConfigurationGroups {
|
object TargetConfigurationGroups {
|
||||||
val JVM = FinalTargetConfiguratorGroup(
|
|
||||||
ModuleType.jvm.projectTypeName,
|
|
||||||
ModuleType.jvm,
|
|
||||||
listOf(
|
|
||||||
JvmTargetConfigurator,
|
|
||||||
AndroidTargetConfigurator
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
val JS = FinalTargetConfiguratorGroup(
|
val JS = FinalTargetConfiguratorGroup(
|
||||||
ModuleType.js.projectTypeName,
|
ModuleType.js.projectTypeName,
|
||||||
ModuleType.js,
|
ModuleType.js,
|
||||||
@@ -87,9 +78,10 @@ object TargetConfigurationGroups {
|
|||||||
val FIRST = FirstStepTargetConfiguratorGroup(
|
val FIRST = FirstStepTargetConfiguratorGroup(
|
||||||
listOf(
|
listOf(
|
||||||
CommonTargetConfigurator,
|
CommonTargetConfigurator,
|
||||||
JVM,
|
JvmTargetConfigurator,
|
||||||
NATIVE.ALL,
|
NATIVE.ALL,
|
||||||
JS
|
JS,
|
||||||
|
AndroidTargetConfigurator
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
+3
@@ -106,6 +106,9 @@ object JvmTargetConfigurator : JvmModuleConfigurator(),
|
|||||||
SingleCoexistenceTargetConfigurator {
|
SingleCoexistenceTargetConfigurator {
|
||||||
override val moduleSubType = ModuleSubType.jvm
|
override val moduleSubType = ModuleSubType.jvm
|
||||||
|
|
||||||
|
override val text: String
|
||||||
|
get() = "JVM"
|
||||||
|
|
||||||
override fun defaultTestFramework(): KotlinTestFramework = KotlinTestFramework.JUNIT4
|
override fun defaultTestFramework(): KotlinTestFramework = KotlinTestFramework.JUNIT4
|
||||||
|
|
||||||
override fun ValuesReadingContext.createInnerTargetIrs(module: Module): List<BuildSystemIR> = buildList {
|
override fun ValuesReadingContext.createInnerTargetIrs(module: Module): List<BuildSystemIR> = buildList {
|
||||||
|
|||||||
Reference in New Issue
Block a user