title: Caused by: java.util.zip.ZipException: invalid code lengths set
body: <p>I get this error while trying to build a project on Android Studio. It happens when trying to compress the final artifact with a binary file on res/raw/file.dat.</p>
  
  <p>The solution like explained here: <a href="https://stackoverflow.com/questions/46734985/maven-corrupting-binary-files-in-source-main-resources-when-building-jar">Maven corrupting binary files in source/main/resources when building jar</a></p>
  
  <p>Is to add the file or res/raw folder to a "false" filtering on build. But the problem is that i configure my internal maven repository with JFrog Articatory following this: <a href="https://inthecheesefactory.com/blog/how-to-setup-private-maven-repository/en" rel="nofollow noreferrer">https://inthecheesefactory.com/blog/how-to-setup-private-maven-repository/en</a></p>
  
  <p>The question: 
  How to convert this:</p>
  
  <pre><code> &lt;project&gt;
        &lt;build&gt;
            &lt;resources&gt;
                &lt;resource&gt;
                    &lt;directory&gt;${basedir}/src/main/resources/lib&lt;/directory&gt;
                    &lt;filtering&gt;false&lt;/filtering&gt;
                &lt;/resource&gt;
            &lt;/resources&gt;
            &lt;plugins&gt;
                ...
            &lt;/plugins&gt;
        &lt;/build&gt;
  &lt;/project&gt;   
  </code></pre>
  
  <p>Into gradle style:</p>
  
  <pre><code>def libraryGroupId = 'XXXXXXX'
  def libraryArtifactId = 'XXXXXX'
  def libraryVersion = '0.0.1'
  
  publishing {
      publications {
          aar(MavenPublication) {
              groupId libraryGroupId
              version libraryVersion
              artifactId libraryArtifactId
  
              artifact("$buildDir/outputs/aar/${artifactId}-release.aar")
          }
  
      }
  
  }
  
  artifactory {
      contextUrl = 'XXXXXXXXXX'
      publish {
          repository {
              repoKey = 'libs-release-local'
  
              username = artifactory_username
              password = artifactory_password
          }
          defaults {
              publications('aar')
              publishArtifacts = true
  
  
              properties = ['qa.level': 'basic', 'q.os': 'android', 'dev.team': 'core']
              publishPom = true
          }
      }
  </code></pre>
  
  <p>I've tried using pom.xml but it kepts saying does not recognized TAG project in .xml file.</p>
  
  <p>Thanks!!!</p>