gradle-jasperreports icon indicating copy to clipboard operation
gradle-jasperreports copied to clipboard

Jasper report version

Open matteoturra opened this issue 5 years ago • 3 comments

Is there a parameter to specify the jasper version?

matteoturra avatar Jul 18 '19 10:07 matteoturra

Yeah, I just got tripped up by this. Using latest version of jaspersoft studio 6.12.0 to modify/enhance existing jrxml report templates. However, when I integrated those templates in my main spring boot project, this plugin fails to compile the modified reports, throwing the following error:

Attribute 'textAdjust' is not allowed to appear in element 'textField'

Apparently, jaspersoft changed/renamed a textField property. What used to be isStretchWithOverflow="true" is now textAdjust="StretchHeight" as of jasper reports version 6.11.0.

However, this plugin is hard-coded to use jasper reports version 6.10.0. This is really a jaspersoft issue, but the inflexibility to specify a jasper reports version for the plugin makes it a real issue.

Perhaps there's a workaround? Otherwise, I would like to see a parameter to specify the jasper reports version in this plugin.

tkofford avatar Apr 18 '20 13:04 tkofford

I'm experiencing the same issue, is there any plan to solve this issue?

viktorKhan avatar Jul 02 '20 13:07 viktorKhan

I had the same issue. Got it working by forcing the newer jasper version. It is not great but works for me buildscript { configurations.all { resolutionStrategy { force "net.sf.jasperreports:jasperreports:6.11.0" } } }

klaskoski avatar Dec 04 '20 10:12 klaskoski