-
Notifications
You must be signed in to change notification settings - Fork 414
Update JasperReports to version 7 #3632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
JapserReport file format has changed and subreport now also has <parameter> tags, instead of <subreportParameter> and that confuses the parser. For example, see change for test/resources/examples/oereb/pdfextract.jrxml
From the artifact of the previous workflow run
sbrunner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm surprised that there are so many (7) new dependencies, otherwise that looks good :-)
Many of those modules are not needed to compile the code, but some of them are loaded indirectly by Class.forName or other dependencies. |
|
@sbrunner I label this PR as an enhancement, as the changes are not backward compatible. The reports will need to be migrated to be compatible with Jasper report 7. Agreed ? |
sebr72
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work. Thanks
| for (int i = 0; i < parameters.getLength(); i++) { | ||
| final Element param = (Element) parameters.item(i); | ||
| final String name = param.getAttribute("name"); | ||
| if (!param.getParentNode().getNodeName().equals("jasperReport")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid unnecessary NPE, Please revert the .equals parameters
| <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> | ||
| </box> | ||
| <conditionalStyle> | ||
| <conditionalStyle mode="Opaque" backcolor="#F2F2F2"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why opaque mode added ?
| <band/> | ||
| </summary> | ||
| <pageFooter/> | ||
| <summary/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is band missing ?
| 'joda-time:joda-time:2.13.1', | ||
| 'com.itextpdf:itextpdf:5.5.13.4', | ||
| 'joda-time:joda-time:2.14.0', | ||
| 'net.sf.jasperreports:jasperreports:7.0.2', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check and confirm all these jasper reports libs are opensource. Write in the description a brief explanation of the licensing changes between 6.21.x and 7.0.x (do not hesitate to add links to jasper report documentation)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Cancellation as soon as possible of a generation that will fail * Cancellation as soon as possible of a generation that will fail
* Yaml reader is not thread safe * Yaml reader is not thread safe
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This is done by the automated script named upgrade-ci-2025
From the artifact of the previous workflow run
…isplays the position of the pages (#3618) * Feature : paging add an option to add an overview layer to the main map that displays the position of the pages on the main map
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…for all layers (#3623) * Add forceFailOnError configuration parameter to set failOnError on all layers
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This is done by the automated script named upgrade-ci-2025
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
| 'joda-time:joda-time:2.14.0', | ||
| 'org.jfree:jcommon:1.0.24', | ||
| 'org.apache.groovy:groovy-all:4.0.26', | ||
| 'xalan:serializer:2.7.3', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why get them out of the jasper section?
It's no more working?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It worked, but it would be better if it contains only jasper libraries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, I like to have all the dependency related to jasper in the same section @sebr72 what do you think?
|
This PR was resolved by: |
See JIRA issue: GSMFP-45.
Breaking changes
JRXML file format. Due to changes in the JasperReports itself, older jrxml files has become incompatible with the newer version of the library and all the examples had to be updated with the JasperReports studio. For details please see:
Explicit dependencies
// TODO: add note about the extra dependencies