title: Android Studio "Build - make project" does not create jar
body: <p>I am developing an app in Android Studio for the first time, and I want the app to connect to a server that I will also develop. This server will run on the Java Runtime Environment instead of Android, but I'd prefer if I can develop it alongside the app, in the same project and IDE.</p>
  
  <p>What I have done so far:</p>
  
  <ul>
  <li>added a <code>server</code> folder in the root (same level as the <code>/app</code> folder)</li>
  <li>added a <code>server/src/java/main/Hello.java</code> file to get started</li>
  <li><p>added a <code>server/build.gradle</code> file with this content:</p>
  
  <pre><code>apply plugin: 'java'
  jar {
      manifest {
          attributes 'Main-Class': 'Hello'
      }
  }
  </code></pre></li>
  <li><p>updated <code>settings.gradle</code> to include the server module like this:</p>
  
  <pre><code>include ':app', ':server'
  </code></pre></li>
  </ul>
  
  <p>The above suffices to get this working:</p>
  
  <ul>
  <li>Executing <code>gradle build</code> on the command line now creates an executable server.jar.</li>
  <li>The server code shows up in Android Studio. It is also built if I click <code>Build - Make Project</code>.</li>
  </ul>
  
  <p>However, <code>Build - Make project</code> is for some reason only compiling <code>Hello.java</code> files into a .class file. It is not creating the <code>server.jar</code> file. Why is it not doing the same thing as a <code>gradle build</code>? How do I fix this?</p>