title: Gradle-File warnings In IntelliJ IDEA 2019.1
body: <p>I upgraded my IntelliJ IDEA installation from 2018.3 to 2019.1 and am now seeing errors in my <code>build.gradle</code> that were not there before. I suspect changed preferences but can not find any.</p>
  
  <p>I am seeing two kinds of errors:</p>
  
  <ul>
  <li>Almost everything is underlined and the warning message popup says "No candidates found for method call plugins." or "No candidates found for method call buildscript."</li>
  <li>I use the Spring Boot plugin and import it on the first line. This is now red and the popup says "Cannot resolve symbol 'SpringBootPlugin'".</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/LXXrE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LXXrE.png" alt="Screenshot of IntelliJ error messages"></a></p>
  
  <p>This worked fine in 2018.3. The gradle build works, i.e. running <code>./gradlew …:build</code> from the command line works and so does running gradle tasks from the IDE.</p>
  
  <p><strong>Update</strong>
  I noticed that in "Project structure" the root module (this is a multi-module build) existed twice: once with the name in <code>settings.gradle</code> and once with the name of the directory the code is in. When changing the name in <code>settings.gradle</code> to the name of the directory, the duplicate entry in "Project structure" disappeared and the errors in <code>build.gradle</code> disappeared.</p>