title: How to add dependency of type @jar in build.gradle using format of group,name,version,type?
body: <p>The pom.xml of dependency is describle with <code>&lt;packaging&gt;apk&lt;/packaging&gt;</code>,which isn't workable in compile.
  So I exclude the module in dependency tree and re-include by
  <code>compile 'package:artifactId:versionName@jar'</code>
  This does work,but what's the corresponding format of <code>group:'groupName',name:'artifactId',version:'versionName',type:'type'</code> ?
  I tried<code>type:'jar'</code> which didn't work.
  And do I have to exclude the dependency in dependency tree first , then re-include it second ? Or I can modify the description of parent dependency ?</p>
  
  <p>parent dependency:</p>
  
  <pre><code>compile (group:'parentGroupId',name:'parentModuleName',version:'parentVersion'){
      exclude group:'excludeGroupId',module:'excludeModuleName'
  }
  
  compile 'excludeGroupId:excludeModuleName:excludeVersion@jar'
  </code></pre>
  
  <p>I tried</p>
  
  <pre><code>compile (group:'parentGroupId',name:'parentModuleName',version:'parentVersion'){
      exclude group:'excludeGroupId',module:'excludeModuleName'
  }
  
  compile (group:'excludeGroupId',name:'excludeModuleName',version:'excludeVersion',type:'jar')
  </code></pre>
  
  <p>the above didn't work</p>