title: Gradle: Could Not Fetch Model of Type 'EclipseProject'
body: <p>This is the first time I'm using Gradle, and I'm fairly new to Java as well. I'm using Eclipse Neon, Gradle 3.4 and JDK 1.8.</p>
  
  <p>When attempting to set up a Gradle application, I get the following error:</p>
  
  <pre><code>Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method mainClassName() for arguments [com.mycompany.app.MyMapApp] on task ':run' of type org.gradle.api.tasks.JavaExec.
  </code></pre>
  
  <p>It's complaining about line 25 in my build.gradle file, which is:</p>
  
  <pre><code>run { mainClassName 'com.mycompany.app.MyMapApp'}
  </code></pre>
  
  <p>I'm not sure if the mainClassName I'm specifying should be different, or if there's something wrong with my version of Gradle?</p>
  
  <p>Has anyone run into this themselves, and if so, how did you resolve it?</p>