title: Firebase Admin - Gradle - Fat Jar - Can't make it work
body: <p>I am building a server to push notifications using Fire Cloud Messaging.
  It is super simple, making a test example, just importing firebase.</p>
  <pre><code>dependencies {
      implementation 'com.google.firebase:firebase-admin:7.1.1'
  }
  </code></pre>
  <p>If I don't create the fat Jar, it runs perfectly until it get to the pushService, I am getting a ClassNotFound error for FirebaseConnector. Which I believe it's right. The funny thing is that when I add the library to the FatJar, like this:</p>
  <pre><code>jar {
      manifest {
          attributes 'Main-Class': 'com.server.push.NotificationProcess'
      }
      from {
          configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
      }
  }
  
  mainClassName = 'com.server.push.NotificationProcess'
  </code></pre>
  <p>I get the no main class error</p>
  <pre><code>Error: Could not find or load main class com.server.push.NotificationProcess
  </code></pre>
  <p>It is not a mispelling or anything like that.. also I am including just 1 dependency so I dont see dependency conflict. I am using gradle-5.4.1 if that helps.</p>
  <p>Can anyone give me a hand with this?</p>
  <p>Much appreciated.</p>