Skip to content

Conversation

@garaud
Copy link
Contributor

@garaud garaud commented May 27, 2025

Make it work for Elastic 8.18

  • update the gradle build adding the spotless plugin

    which allows us to apply an auto-formatting. Also add -Xlint option to show the deprecation warnings at compile time.

    Add two configuration files for formatting and import order (the same as Elasticsearch)

  • apply auto-formatting thanks to the spotless plugin

  • gradle build for Elastic 8.18.1

  • adapt the plugin with the Elastic 8 internal API

  • processor: get rid of a deprecation warning about XContent.createParser also remove unused attributes and imports

  • remove some unused imports

  • update the Yaml REST unit tests

Also remove the legacy geo libs from the dependency adapting the code to handle Geometry objects thanks to JTS and elasticsearch.common.geo libs.

garaud added 7 commits May 27, 2025 17:01
which allows us to apply an auto-formatting. Also add '-Xlint' option
to show the deprecation warnings at compile time.

Add two configuration files for formatting and import order (the same as
Elasticsearch)
@garaud garaud marked this pull request as ready for review May 28, 2025 16:03
@garaud garaud requested a review from 5k4nd May 28, 2025 16:03
garaud added 12 commits June 6, 2025 11:59
* fix a conflict issue with hamcrest
* you can write unit test with Junit4 and ESTestCase
prepare the legacygeo refactoring to get rid of this geo library
in order to replace it by jts geometry and elasticsearch.geom
…csearch.geo lib

* add a function for each Geometry type: Line, LinearRing, Polygon, MultiPolygon,
  GeometryCollection
* add unit tests based on the legacy one
Just depending on jts.io, jts geom and elasticsearch.common.geo libs to handle
the Geometry objects.
remove the JAR file in the libs folder and also get rid of mentionning
the dependency from the build Gradle file.
@garaud garaud force-pushed the chore/sc-56156/migrate-es-geoshape-java-plugin branch from f8200e3 to 029cda8 Compare August 1, 2025 13:24
Copy link
Contributor

@5k4nd 5k4nd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected! 🙏

@5k4nd 5k4nd merged commit fbb15e8 into master Oct 8, 2025
1 check passed
@5k4nd 5k4nd deleted the chore/sc-56156/migrate-es-geoshape-java-plugin branch October 8, 2025 16:13
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.

3 participants