Anders Kirkeby
11/24/2023, 1:40 PMkotlin-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:
[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:
<configuration>
<args>
<arg>-Xcontext-receivers</arg>
</args>
</configuration>
☝️ again, they are picked up, but not when generating configs which seems like a bug? 🐞