title: Copy META-INF files to jar in gradle
body: <p>I have a META-INF folder where the persitence.xml and orm.xml are located. When I build a jar file with following gradle those files are not getting included in the jar. How can i copy those files to the jar ?</p>
  
  <p>Project structure</p>
  
  <pre><code> src
   |
    - main(java/classes)
    - MET-INF(peristenc.xml, orm.xml)
  </code></pre>
  
  <p>Jar file code</p>
  
  <pre><code>jar {
      from {
       configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
       }
       {
        exclude "license/*.txt"
       }
  }
  </code></pre>
  
  <p>Any help would be great</p>