title: Unsupported method: IdeaModuleDependency.getDependencyModule() error when migrating project to Gradle Kotlin DSL
body: <p>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.</p>
  
  <p><code>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.</code></p>
  
  <p>I'm using the gradle 5.0 wrapper so updating is not an option as far as I know.</p>
  
  <p>I'm also on the latest version of IntelliJ with all plugins up to date.</p>
  
  <p>IntelliJ IDEA 2018.3 (Ultimate Edition)
  Build #IU-183.4284.148, built on November 21, 2018</p>
  
  <p>The project I'm building with Gradle is a multi module Kotlin-JVM project.</p>