Jasper in Grails 3.x -
using grails 3.0.12 , need generate pdf report, preferably using jasperreports, haven't found plugin works.
i've used compile "org.grails.plugins:jasper:1.11.0" grails documentation didn't work.
what plugin should use? or there alternative generate pdf's reports in grails 3.x?
i using grails 3.2.4, , after googling , searching how install jasper reports on grails 3.x version without compilation error, int oficial grails plugin page version 3.x there grails-jasper plugin, problem have create plugin archive using source code , use plugin created grails project said in documentation. other solution , 1 used, use same plugin dependencies in code of grails-jasper plugin, code in file build.gradle of plugin source code, , have use necessary dependencies, following used , working perfectly.
dependencies { ... compile('com.lowagie:itext:2.1.7') compile('net.sf.jasperreports:jasperreports:5.6.1') { exclude module: 'antlr' exclude module: 'commons-logging' exclude module: 'ant' exclude module: 'mondrian' exclude module: 'commons-javaflow' exclude module: 'barbecue' exclude module: 'xml-apis-ext' exclude module: 'xml-apis' exclude module: 'xalan' exclude module: 'groovy-all' exclude module: 'hibernate' exclude module: 'saaj-api' exclude module: 'servlet-api' exclude module: 'xercesimpl' exclude module: 'xmlparserapis' exclude module: 'spring-core' exclude module: 'bsh' exclude module: 'spring-beans' exclude module: 'jaxen' exclude module: 'barcode4j' exclude module: 'batik-svg-dom' exclude module: 'batik-xml' exclude module: 'batik-awt-util' exclude module: 'batik-dom' exclude module: 'batik-css' exclude module: 'batik-gvt' exclude module: 'batik-script' exclude module: 'batik-svggen' exclude module: 'batik-util' exclude module: 'batik-bridge' exclude module: 'persistence-api' exclude module: 'jdtcore' exclude module: 'bcmail-jdk16' exclude module: 'bcprov-jdk16' exclude module: 'bctsp-jdk16' exclude module: 'bcmail-jdk14' exclude module: 'bcprov-jdk14' exclude module: 'bctsp-jdk14' exclude module: 'xmlbeans' exclude module: 'olap4j' } compile('org.apache.poi:poi:3.10-final') ... }
i hope works in projects.
Comments
Post a Comment