Gradle plugin fails because of trailing commas in Kotlin

This issue has come up at least twice before:

It seems like the SonarQube server has been updated to support this compiler version, but the Gradle plugin is still failing with Unable to parse file: <source_file>. Parse error at position n:m on all files with trailing commas. I would like to be able to track this issue. Let me know if there is a workaround; otherwise, we’ll need to use a different tool set.

Hello @covercash2,

Thanks for your message.

As you might have noticed, the issue was fixed almost a year ago and all the threads, you’re mentioning here are already closed. So in general the trailing coma should be parsed correctly.

Could you please share with me a little bit more details?

  • Which products do you use (SonarLint, SonarQube, SonarCloud)
  • Which versions of these products do you use?
  • Could you please show me the example of not working trailing come?
  • Could you please share your Configuration of sonarqube plugin in gradle build script?
  • Could you please share the log with me?