From d9e17911ea868c7cfafc03a6201ca7bfacb5f618 Mon Sep 17 00:00:00 2001 From: Oliver Behnke Date: Fri, 28 May 2021 11:35:20 +0200 Subject: [PATCH] Enable SPI/ServiceLoader under OSGi * Using OSGi's Service Loader Mediator (i.e. Apache Aries SPI Fly) * Made all requirements optional (minimally invasive change) --- api/bnd.bnd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/bnd.bnd b/api/bnd.bnd index c9f54a7a..7609895d 100644 --- a/api/bnd.bnd +++ b/api/bnd.bnd @@ -9,3 +9,5 @@ Import-Package: javax.enterprise.context;version="[1.1,3)";resolution:=optional, javax.inject;resolution:=optional,\ org.eclipse.microprofile.config;version="[2.0,3)";resolution:=optional,\ * +Require-Capability: osgi.extender; filter:="(osgi.extender=osgi.serviceloader.processor)"; resolution:=optional,\ + osgi.serviceloader; filter:="(osgi.serviceloader=org.eclipse.microprofile.rest.client.spi.RestClientBuilderResolver)"; resolution:=optional