title: Exclude transitive dependency in Gradle
body: <p>During build via Gradle I got this</p>
  
  <pre><code>POM relocation to an other version number is not fully supported in Gradle : xml-apis:xml-apis:2.0.2 relocated to xml-apis:x
  ml-apis:1.0.b2.
  Please update your dependency to directly use the correct version 'xml-apis:xml-apis:1.0.b2'.
  Resolution will only pick dependencies of the relocated element. Artifacts and other metadata will be ignored.
  </code></pre>
  
  <p>Batik 1.7 was used in project.
  This version of Batik uses Xalan 2.6.0, which has dependency on xml-apis 2.0.2, which was relocated.</p>
  
  <p>How to resolve this transitive dependency?</p>