mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[perf_tests]AT-816. Implemented createSpringProjectCommand in spring-initializr plugin
GitOrigin-RevId: b36ff31ee4e83afb7595016677e51aa7a8db6df0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d1bc5381f8
commit
76a12d3bed
+6
@@ -0,0 +1,6 @@
|
||||
package com.intellij.tools.ide.performanceTesting.commands.dto
|
||||
|
||||
enum class BuildType {
|
||||
MAVEN,
|
||||
GRADLE
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package com.intellij.tools.ide.performanceTesting.commands.dto
|
||||
|
||||
import com.intellij.tools.ide.performanceTesting.commands.SdkObject
|
||||
import java.io.Serializable
|
||||
|
||||
data class NewSpringProjectDto(
|
||||
val projectName: String,
|
||||
val buildType: BuildType,
|
||||
val frameworkVersion: String,
|
||||
val sdkObject: SdkObject? = null
|
||||
) : Serializable
|
||||
+5
@@ -619,6 +619,11 @@ fun <T : CommandChain> T.createGradleProject(newGradleProjectDto: NewGradleProje
|
||||
addCommand("${CMD_PREFIX}createGradleProject $options")
|
||||
}
|
||||
|
||||
fun <T : CommandChain> T.createSpringProject(newMavenProjectDto: NewSpringProjectDto): T = apply {
|
||||
val options = objectMapper.writeValueAsString(newMavenProjectDto)
|
||||
addCommand("${CMD_PREFIX}createSpringProject $options")
|
||||
}
|
||||
|
||||
fun <T : CommandChain> T.updateMavenGoal(settings: MavenGoalConfigurationDto): T = apply {
|
||||
val options = objectMapper.writeValueAsString(settings)
|
||||
addCommand("${CMD_PREFIX}updateMavenGoal $options")
|
||||
|
||||
Reference in New Issue
Block a user