Multiple Gradle script configurations in IntelliJ

My IntelliJ has 3 definitions for KotlinInitScript, KotlinSettingsScript and KotlinBuildScript:

I get a message that multiple definitions are applicable at the top of my editor.

I uninstalled (= downgraded) the Kotlin plugin, and then installed the latest version again, but neither helped. How do I remove the (presumably) obsolete definitions?

looks similar to https://youtrack.jetbrains.com/issue/KT-41281

I also had 3 Gradle projects open. After closing 2 of them, the multiple definitions were still there, but restarting IntelliJ helped.

Importing another Gradle project made the definitions reappear.

I will reopen the issue.

1 Like