From 856b093c116782a85ae8b6d634124d13dc893a15 Mon Sep 17 00:00:00 2001
From: dlwlrma <965810157@qq.com>
Date: Sat, 10 Oct 2026 15:47:43 +0800
Subject: [PATCH] Make Servlet optional for OSGi consumers
Allow the Handlebars bundle to resolve without Servlet when applications do not use ServletContextTemplateLoader. Keep the existing Servlet version range and other package imports unchanged.
Fixes #1179
Signed-off-by: dlwlrma <965810157@qq.com>
---
handlebars/pom.xml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/handlebars/pom.xml b/handlebars/pom.xml
index b9aa983e..eede0c26 100644
--- a/handlebars/pom.xml
+++ b/handlebars/pom.xml
@@ -121,6 +121,11 @@
org.apache.felix
maven-bundle-plugin
5.1.9
+
+
+ jakarta.servlet;resolution:=optional,*
+
+
bundle-manifest