lucene icon indicating copy to clipboard operation
lucene copied to clipboard

Switch s2-geometry to google's 'official' version

Open dweiss opened this issue 8 months ago • 5 comments

This isn't complete. There are some extra dependencies I'm not sure are needed. But overall, the transition seems to be simple. Not that the "new" library from Google is that well maintained (there is only one version published).

dweiss avatar Apr 30 '25 22:04 dweiss

This requires pulling in guava, which in turn has a module-info in a multi-release jar location. ECJ fails on this due to this bug I filed 4 years ago: https://bugs.eclipse.org/bugs/show_bug.cgi?id=577790 ported to gh as https://github.com/eclipse-jdt/eclipse.jdt.core/issues/2778

dweiss avatar May 01 '25 07:05 dweiss

I've made it run and compile. It is surprisingly hairy because of modular classpaths, errorprone interactions and extra dependencies brought in. There is a single version of this s2 geometry library ever published. At this point I'm thinking we could just fold whatever is needed into this module (it is asl2) instead of importing the external jar...

dweiss avatar May 01 '25 11:05 dweiss

I like the idea of reducing the deps: not anything crazy, but just trying to keep the dep tree minimal. We frequently hear from users on decades-old versions on the ML, so it is less problems for end-users as well.

rmuir avatar May 01 '25 11:05 rmuir

I've already excluded what was possible. Anything more would require copying the code over and manual removal of dependencies (which shouldn't be too difficult). I'm at crossroads here. This guava dependency is going to be a problem, I can sense it.

dweiss avatar May 01 '25 17:05 dweiss

This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the [email protected] list. Thank you for your contribution!

github-actions[bot] avatar May 16 '25 00:05 github-actions[bot]

This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the [email protected] list. Thank you for your contribution!

github-actions[bot] avatar Oct 16 '25 00:10 github-actions[bot]