Search code examples
grailsjasper-reportsgrails-plugin

Jasper Report plugin in Grails 3.1.8


Generate PDF file using jasper report in Grails 3.1.8 . But when I add dependencies some error is occurred. I can't adding any jasper report dependencies in Grails 3.1.8. Please help me or any idea to use jasper report plugin in grails 3.1.8.I already used

       (1)
       compile "org.grails.plugins:jasper:1.11.0" 
       (2)
       compile 'com.lowagie:itext:2.1.7.js2'
       compile 'net.sf.jasperreports:jasperreports:6.2.1'

Solution

  • The plugin org.grails.plugins:jasper:1.11.0 is not grails 3 compatible. It is only up to Grails 2.x There is a plugin for Grails 3 version here.https://grails.org/plugins.html#plugin/grails-jasper.

    In other hand, you could run grails dependency-report for seeing what it is happening. It seems that there is a conflict between dependencies. But as I said, that plugin probably won't work with your project.