Hey I am playing with teamcity Kotlin DSL configur...
# announcements
i
Hey I am playing with teamcity Kotlin DSL configuration. 1. First problem is that I don’t have code completion, so I don’t know what syntax I can use (my configuration is stored in project
.teamcity/settings.kts
) - AS 3.2.1 2. Secound is that I can’t find link to proper documentation, where all the DSL syntax is explained in detail
i
Usually
settings.kts
just calls
project(...)
function, and all configuration goes in a Project.kt object, which is a part of a normal maven project. https://confluence.jetbrains.com/display/TCD18/Kotlin+DSL#KotlinDSL-settings.kts
i
But how I know what elements (member names) I can use inside
project
lambda without code completion?
Copy code
project {
    name  = "aaa"
    ??? 
    ???
}
i
This blog post recommends taking an existing teamcity project and downloading its settings in kotlin dsl format: https://blog.jetbrains.com/teamcity/2016/11/kotlin-configuration-scripts-an-introduction/ to get familiar with that dsl
👍 1