Skip to content
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

Update GeoTools 31.5 and JTS 1.19.0 #8614

Open
wants to merge 1 commit into
base: 4.2.x
Choose a base branch
from

Conversation

jodygarnett
Copy link
Contributor

The stable branch should stick to a supported version of GeoTools.

For main branch see #8613

Checklist

  • I have read the contribution guidelines
  • Pull request provided for main branch, backports managed with label
  • Good housekeeping of code, cleaning up comments, tests, and documentation
  • Clean commit history broken into understandable chucks, avoiding big commits with hundreds of files, cautious of reformatting and whitespace changes
  • Clean commit messages, longer verbose messages are encouraged
  • API Changes are identified in commit messages
  • Testing provided for features or enhancements using automatic tests
  • User documentation provided for new features or enhancements in manual
  • Build documentation provided for development instructions in README.md files
  • Library management using pom.xml dependency management. Update build documentation with intended library use and library tutorials or documentation

The stable branch should stick to a supported version of GeoTools.
@juanluisrp
Copy link
Contributor

juanluisrp commented Jan 23, 2025

@jodygarnett the dependency is not compatible with Java 8 that is what GN 4.2.x uses:

core-geonetwork/core/src/main/java/org/fao/geonet/util/XslUtil.java:[83,33] cannot access org.geotools.geojson.geom.GeometryJSON
  bad class file: /Users/juanl/.m2/repository/org/geotools/gt-geojson/31.5/gt-geojson-31.5.jar(org/geotools/geojson/geom/GeometryJSON.class)
    class file has wrong version 55.0, should be 52.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.

gt-geojson-31.5.jar is compiled for Java 11. Last Geotools version compatible with Java 8 is 28.x so the most recent we can use is 28.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants