:wave: I'm trying to use kotlin compiler options w...
# teamcity
a
👋 I'm trying to use kotlin compiler options when generating kotlin DSL teamcity configs. Adding the compiler option onto the
kotlin-maven-plugin
ensures the compiler warning dissapper in the settings.kts file (see the configuration parameter below), but trying to generate the configs with the
teamcity-configs:generate
task doesn't work. Question then is, how do I add the compiler options so that they are picked up also when generating configs, and avoid the following error:
Copy code
[ERROR] Error while generating TeamCity configs:
[ERROR] Compilation error settings.kts[8:9]: To use contextual declarations, specify the `-Xcontext-receivers` compiler option
[ERROR] Compilation error settings.kts[13:13]: To use contextual declarations, specify the `-Xcontext-receivers` compiler option
these are the compiler options I'm adding:
Copy code
<configuration>
                    <args>
                        <arg>-Xcontext-receivers</arg>
                    </args>
                </configuration>
☝️ again, they are picked up, but not when generating configs which seems like a bug? 🐞