@botteaap Upgrade to Gradle 8.1 or if you can't, put `@file:Suppress("DSL_SCOPE_VIOLATION")` at the top.

Gradle prior to that version generates slightly invalid code that the Kotlin compiler correctly complains about.