KotlinProjectConfigurator: J2K
This commit is contained in:
+2
-3
@@ -38,9 +38,8 @@ class KotlinJavaMavenConfigurator : KotlinMavenConfigurator(KotlinJavaMavenConfi
|
||||
createExecution(pomFile, kotlinPlugin, PomFile.DefaultPhases.TestCompile, PomFile.KotlinGoals.TestCompile, module, true)
|
||||
}
|
||||
|
||||
override fun getTargetPlatform(): TargetPlatform {
|
||||
return JvmPlatform
|
||||
}
|
||||
override val targetPlatform: TargetPlatform
|
||||
get() = JvmPlatform
|
||||
|
||||
companion object {
|
||||
private val NAME = "maven"
|
||||
|
||||
+2
-3
@@ -38,9 +38,8 @@ class KotlinJavascriptMavenConfigurator : KotlinMavenConfigurator(KotlinJavascri
|
||||
createExecution(pomFile, kotlinPlugin, PomFile.DefaultPhases.TestCompile, PomFile.KotlinGoals.TestJs, module, true)
|
||||
}
|
||||
|
||||
override fun getTargetPlatform(): TargetPlatform {
|
||||
return JsPlatform
|
||||
}
|
||||
override val targetPlatform: TargetPlatform
|
||||
get() = JsPlatform
|
||||
|
||||
companion object {
|
||||
private val NAME = "js maven"
|
||||
|
||||
+6
-7
@@ -41,18 +41,17 @@ import org.jetbrains.kotlin.idea.framework.ui.ConfigureDialogWithModulesAndVersi
|
||||
import org.jetbrains.kotlin.idea.maven.PomFile
|
||||
import org.jetbrains.kotlin.idea.maven.excludeMavenChildrenModules
|
||||
|
||||
abstract class KotlinMavenConfigurator protected constructor(private val stdlibArtifactId: String, private val testArtifactId: String?, private val addJunit: Boolean, private val name: String, private val presentableText: String) : KotlinProjectConfigurator {
|
||||
abstract class KotlinMavenConfigurator
|
||||
protected constructor(private val stdlibArtifactId: String,
|
||||
private val testArtifactId: String?,
|
||||
private val addJunit: Boolean,
|
||||
override val name: String,
|
||||
override val presentableText: String) : KotlinProjectConfigurator {
|
||||
|
||||
override fun isApplicable(module: Module): Boolean {
|
||||
return KotlinPluginUtil.isMavenModule(module)
|
||||
}
|
||||
|
||||
override fun getPresentableText() = presentableText
|
||||
|
||||
override fun getName(): String {
|
||||
return name
|
||||
}
|
||||
|
||||
override fun isConfigured(module: Module): Boolean {
|
||||
if (!isKotlinModule(module)) {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user