restlet-framework-java
restlet-framework-java copied to clipboard
Drop support of OSGi
Why drop it
- Ecosystem shift: OSGi use has shrunk a lot. Most users run Spring Boot, Quarkus, plain JARs or containers. The main holdouts are Eclipse/Equinox-based products and Karaf/Felix deployments.
- JPMS overlap:
module-info.javawas just added. Keeping both is hard (automatic and split packages,Import-Packagevsrequires, service-loading differences). Several extension libraries aren't OSGi-friendly either, which is what the Woodstox hack is for. - Cost: extra manifest metadata, a classloading-specific code path, and bundle testing that CI almost certainly doesn't do. Untested OSGi support tends to be broken in practice anyway.
- Timing: 3.0 is already a breaking release with a raised Java baseline, so removing it now costs the least.
Drop it in 3.0:
- Delete the
Activator, theosgi.coredependency and therequires static osgi.core;line. - Simplify
XmlFactoryProviderto plainServiceLoader. - Add a Breaking changes entry in
changes.mdsaying OSGi support was removed, and pointing OSGi users to 2.x.