title: Which version of iText to use so that both JasperReports and Grails Rendering plugin works
body: <p>I want to use both <a href="http://community.jaspersoft.com/project/jasperreports-library" rel="nofollow noreferrer">Jasper Reports</a> (vanilla, never got the <a href="http://grails.org/plugin/jasper" rel="nofollow noreferrer">Grails Jasper plugin</a> to work - see <a href="https://stackoverflow.com/questions/11257078/grails-ireport-jasper-returns-blank-page#comment27319549_11257078">this</a>) and <a href="http://grails.org/plugin/rendering" rel="nofollow noreferrer">Grails Rendering plugin</a> (one is more suitable for some reports, another for others).</p>
  
  <p>If I include 'com.lowagie:itext:2.1.5' or 'com.lowagie:itext:4.2.1' then I am missing com.lowagie.text.pdf.BaseFont.getCharBBox upon running the Rendering plugin's PDF report.</p>
  
  <p>If I include 'com.lowagie:itext:2.0.8' then I am missing com.lowagie.text.pdf.PdfWriter.setRgbTransparencyBlending upon running Jasper's PDF report.</p>
  
  <p>Both are failing with java.lang.NoSuchMethodError-s.</p>
  
  <p>I haven't tried with the latest iText versions, but they have different package names and more restrictive licensing, so I don't think they would be a good fit.</p>
  
  <p>My BuildConfig.groovy looks like this (one of the first 3 dependencies gets uncommented):</p>
  
  <pre><code>dependencies {
    // runtime 'com.lowagie:itext:4.2.1' // missing.BaseFont.getCharBBox
    // runtime 'com.lowagie:itext:2.0.8' // missing PdfWriter.setRgbTransparencyBlending
    // runtime 'com.lowagie:itext:2.1.5' // missing.BaseFont.getCharBBox  
       compile 'net.sf.jasperreports:jasperreports:5.2.0' // needed by jasper
       runtime 'org.springframework:spring-test:3.2.4.RELEASE' // needed by rendering plugin
       runtime 'commons-collections:commons-collections:3.2.1' // needed for jasper            
  }
  
  plugins {
      // ...
         compile ":rendering:0.4.4"
      // compile ":jasper:1.6.1" // couldn't get this to generate anything, but not sure it would help any
      // ...
  }
  </code></pre>
  
  <p>Is there any "old" version of iText (MPL-licensed) that I could try that may work?</p>
  
  <p>Is there some way to ask Maven/Gradle to make it so that I can ask one of the libraries/plugins to use one version of iText, and another the other?</p>