You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2023/04/25 15:45:45 UTC

[sling-org-apache-sling-starter] 01/01: SLING-11836 - Add Jakarta JSON support to the Sling Starter

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch issue/SLING-11836
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter.git

commit f8cc7ce5ed8acec6d49db7bc8b4d6474a8a1674d
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Tue Apr 25 17:44:06 2023 +0200

    SLING-11836 - Add Jakarta JSON support to the Sling Starter
    
    Add the glassfish osgi resource locator to the boot feature. This shim is explicitly
    invoked by the JsonProvider to properly function in OSGi environments [1].
    
    [1]: https://github.com/jakartaee/jsonp-api/blob/a75c9ab8455c4d04b787a6eb18fde5b855ba632c/api/src/main/java/jakarta/json/spi/JsonProvider.java#L616-L645
---
 src/main/features/boot.json | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main/features/boot.json b/src/main/features/boot.json
index fa62734..6e8a51c 100644
--- a/src/main/features/boot.json
+++ b/src/main/features/boot.json
@@ -92,6 +92,10 @@
             "id":"org.eclipse.parsson:parsson:1.1.1",
             "start-order":"1"
         },
+        {
+          "id": "org.glassfish.hk2:osgi-resource-locator:2.5.0-b42",
+          "start-order": "1"
+        },
         {
             "id":"org.apache.sling:org.apache.sling.commons.osgi:2.4.2",
             "start-order":"1"