GeoWebCache / geowebcache

GeoWebCache is a tile caching server implemented in Java that provides various tile caching services like WMS-C, TMS, WMTS, Google Maps, MS Bing and more
https://www.geowebcache.org
342 stars 281 forks source link

Remove gwc-rest dependency to licence-incompatible json.org #850

Open aaime opened 4 years ago

aaime commented 4 years ago

The json.org java library, is not GPL compatible: https://www.json.org/license.html and https://github.com/stleary/JSON-java/blob/master/LICENSE

In particular, due to this restriction "The Software shall be used for Good, not Evil."

See also a similar migration here: https://josm.openstreetmap.de/ticket/9590

jodygarnett commented 4 years ago

Meeting update: Recommend use of jackson

soc commented 4 years ago

Isn't jackson more of serialization framework and less of build-some-json-manually framework?

(I haven't looked at the usages, but I'm a bit concerned that it might introduce a lot of complexity here.)

aaime commented 4 years ago

The "obvious" reason is that we already have it in the classpath and its usage is spreading anyways. jackson-core is indeed very low level, but here the code is really just deserializing some json and serializing it again (first we need to figure out why it's done to start with... probably related to how bad the XStream JSON output looks like, but need to check and confirm)