i just use build.gradle.kts instead of build.gradle integrated with kotlin to run gradle script. maven config:
repositories { maven { url "https://plugins.gradle.org/m2/" } mavenCentral() }
gradle-script-kotlin error: