title: No main manifest attribute in .jar file
body: <p>I've been looking at several different threads, and found no solution. I have made a project, which retrives data from google sheets, using java and gradle. I have created an artifact and built the jar file through intelliJ. When i try to run the jar through the terminal using "java -jar filename.jar" i get "no main manifest attribute, in filename.jar"</p>
  
  <p>My MANIFEST.MF is located in main/java/META-INF and has the following simple structure</p>
  
  <pre><code>Manifest-Version: 1.0
  Main-Class: Main
  </code></pre>
  
  <p>The build.gradle file has the following structure:</p>
  
  <pre><code>plugins {
      id 'java'
  }
  
  group  'filename'
  version '1.0-SNAPSHOT'
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      testCompile group: 'junit', name: 'junit', version: '4.12'
      compile 'com.google.api-client:google-api-client:1.30.4'
      compile 'com.google.oauth-client:google-oauth-client-jetty:1.30.4'
      compile 'com.google.apis:google-api-services-sheets:v4-rev581-1.25.0'
  }
  </code></pre>
  
  <p>Clearly i have stated in what class the main method is, and this is why this errormessage, makes no sense to me. Does anyone have a solution for this?</p>