I am getting a very uninformative error when I try to build my project after migrating from Gradle Groovy DSL to Kotlin DSL in IntelliJ IDEA.
Unsupported method: IdeaModuleDependency.getDependencyModule().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
I'm using the gradle 5.0 wrapper so updating is not an option as far as I know.
I'm also on the latest version of IntelliJ with all plugins up to date.
IntelliJ IDEA 2018.3 (Ultimate Edition) Build #IU-183.4284.148, built on November 21, 2018
The project I'm building with Gradle is a multi module Kotlin-JVM project.